Trigger test repo workflow #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / CoverageInvalid workflow file
|
||
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 }}" |