Sha256: b6a3fefe98a7dd044925c078ad0ea821272a5981ef1b63078645badc53d2d1a9

Contents?: true

Size: 941 Bytes

Versions: 36

Compression:

Stored size: 941 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@v3
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: '3'
        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

36 entries across 36 versions & 1 rubygems

Version Path
image_optim_pack-0.9.1.20230129-x86_64-linux .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20230129-x86_64-darwin .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20230129-x86-linux .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20230129 .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20230127-x86-linux .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20230127-x86_64-linux .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20230127-x86_64-darwin .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20230127 .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20230107-x86_64-linux .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20230107-x86-linux .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20230107-x86_64-darwin .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20230107 .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20221226-x86-linux .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20221226-x86_64-linux .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20221226-x86_64-darwin .github/workflows/livecheck.yml
image_optim_pack-0.9.1.20221226 .github/workflows/livecheck.yml