Sha256: 7be83ef2cdc39006da6c39d73e6017d0e4e2f4a64801c4250469b91d37a9460a

Contents?: true

Size: 943 Bytes

Versions: 28

Compression:

Stored size: 943 Bytes

Contents

name: livecheck
on:
  schedule:
  - cron: 34 5 * * *
  workflow_dispatch:
    inputs:
      retry:
        description: 'Retry attempt'
        required: true
        type: number
jobs:
  livecheck:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: '3.1'
        bundler-cache: true
    - run: |
        bundle exec script/livecheck || if (( $? == 1 )); then
          exit 1
        else
          echo '::set-output name=RETRY::1'
        fi
      id: livecheck
    - if: ${{ steps.livecheck.outputs.RETRY }}
      env:
        RETRY: ${{ inputs.retry }}
        RETRIES: 10
        GITHUB_TOKEN: ${{ secrets.RETRY_TOKEN }}
      run: |
        if (( ${RETRY:-0} < $RETRIES )); then
          sleep 300
          gh workflow run livecheck --repo $GITHUB_REPOSITORY --ref $GITHUB_REF_NAME -f retry=$(( $RETRY + 1 ))
        else
          exit 1
        fi

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
image_optim_pack-0.9.1.20221210-x86-linux .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20221210-x86_64-linux .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20221210-x86_64-darwin .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20221210 .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20221127-x86-linux .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20221127-x86_64-linux .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20221127-x86_64-darwin .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20221127 .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20221104-x86-linux .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20221104-x86_64-linux .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20221104-x86_64-darwin .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20221104 .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20220917-x86-linux .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20220917-x86_64-linux .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20220917-x86_64-darwin .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20220917 .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20220909-x86-linux .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20220909-x86_64-linux .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20220909-x86_64-darwin .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20220909 .github/workflows/livecheck.yml