Skip to content

test restarter workflow #728

test restarter workflow

test restarter workflow #728

Workflow file for this run

name: "ci"
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
workflow_dispatch:
env:
SOURCE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
jobs:
spec:
strategy:
fail-fast: false
matrix:
ruby_version:
- "2.7"
- "3.2"
include:
- puppet_gem_version: "~> 7.0"
ruby_version: "2.7"
- puppet_gem_version: "~> 8.0"
ruby_version: "3.2"
name: "spec (ruby ${{ matrix.ruby_version }})"
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_ci.yml@main"
secrets: inherit
with:
rake_task: 'spec:coverage'
ruby_version: ${{ matrix.ruby_version }}
puppet_gem_version: ${{ matrix.puppet_gem_version }}
acceptance:
needs: "spec"
strategy:
fail-fast: false
matrix:
os:
- "ubuntu-latest"
- "windows-2019"
ruby_version:
- "2.7"
- "3.2"
include:
- puppet_gem_version: "~> 7.0"
ruby_version: "2.7"
- puppet_gem_version: "~> 8.0"
ruby_version: "3.2"
name: "acceptance (ruby ${{ matrix.ruby_version }} | ${{ matrix.os }})"
uses: "puppetlabs/cat-github-actions/.github/workflows/gem_acceptance.yml@main"
secrets: inherit
with:
ruby_version: ${{ matrix.ruby_version }}
puppet_version: ${{ matrix.puppet_gem_version }}
rake_task: 'acceptance:local'
runs_on: ${{ matrix.os }}
rerun:
needs: "acceptance"
# (2) continue ONLY IF "acceptance" fails
if: always() && needs.acceptance.result == 'failure'
# (4) "use" the custom action to retrigger the failed "acceptance job" above
# NOTE: pass the SOURCE_GITHUB_TOKEN to the custom action because (a) it must have
# this to trigger the reusable workflow that restarts the failed job; and
# (b) custom actions do not have access to the calling workflow's secrets
name: "rerun"
uses: "puppetlabs/cat-github-actions/.github/workflows/workflow-restarter.yml@cat_1820"

Check failure on line 73 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / ci

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 73, Col: 11): Input repo is required, but not provided while calling. .github/workflows/ci.yml (Line: 76, Col: 19): Invalid input, repository is not defined in the referenced workflow.
secrets: inherit
with:
repository: ${{ github.repository }}
run_id: ${{ github.run_id }}