Sha256: dbc896a27e50d4c2481f0ced2124461446b7d7b46ae846f267723084dc4b82f7

Contents?: true

Size: 858 Bytes

Versions: 3

Compression:

Stored size: 858 Bytes

Contents

name: livecheck
on:
  push:
  pull_request:
  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@v4
    - uses: ruby/setup-ruby@v1
      with:
        ruby-version: '3'
        bundler-cache: true
    - env:
        RETRY: ${{ inputs.retry }}
        RETRIES: 10
        GITHUB_TOKEN: ${{ secrets.RETRY_TOKEN }}
      run: |
        bundle exec script/livecheck || {
          exit_code=$?
          if (( $exit_code == 2 )) && (( ${RETRY:-0} < $RETRIES )); then
            sleep 300
            gh workflow run livecheck --repo $GITHUB_REPOSITORY --ref $GITHUB_REF_NAME -f retry=$(( $RETRY + 1 ))
          else
            exit $exit_code
          fi
        }

Version data entries

3 entries across 3 versions & 1 rubygems

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