Sha256: 7c6a1e2bd476daa56fe2c7b9efa3349408995189146b8b8ac8a9007ad42c3837

Contents?: true

Size: 675 Bytes

Versions: 3

Compression:

Stored size: 675 Bytes

Contents

name: livecheck
on:
  push:
  pull_request:
  schedule:
  - cron: 34 5 * * *
jobs:
  livecheck:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: '3'
        bundler-cache: true
    - run: |
        MAX_ATTEMPTS=10
        for ((attempt = 1; ; attempt++)); do
          echo "#### Attempt $attempt"
          if bundle exec script/livecheck; then
            exit
          else
            exit_code=$?
            if [ $exit_code -eq 2 ] && [ $attempt -lt $MAX_ATTEMPTS ]; then
              sleep 3
            else
              exit $exit_code
            fi
          fi
        done

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
image_optim_pack-0.11.1.20240713-x86_64-linux .github/workflows/livecheck.yml
image_optim_pack-0.11.1.20240713-x86_64-darwin .github/workflows/livecheck.yml
image_optim_pack-0.11.1.20240713 .github/workflows/livecheck.yml