Skip to content

Trigger test repo workflow #2

Trigger test repo workflow

Trigger test repo workflow #2

name: 'Coverage'
on:
workflow_run:
workflows: ["CI"]
types: [completed]
jobs:
tests:
name: Run functional test
runs-on: ubuntu-latest
steps:
- name: Trigger test repository worfklow
env:
GITHUB_TOKEN: ${{ secret.FUNCTIONAL_TESTS_TRIGGER }}

Check failure on line 14 in .github/workflows/trigger-functional-tests.yml

View workflow run for this annotation

GitHub Actions / Coverage

Invalid workflow file

The workflow is not valid. .github/workflows/trigger-functional-tests.yml (Line: 14, Col: 25): Unrecognized named-value: 'secret'. Located at position 1 within expression: secret.FUNCTIONAL_TESTS_TRIGGER
run: |
gh api \
--method POST \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
/repos/yoanm/gha-versioning-test-repo/actions/workflows/functional-tests.yml/dispatches \
-f "ref=master" -f "inputs[ref]=${{ github.event.workflow_run.head_sha }}"