| 1 |
name: Update Reference Checker Conformance Test Reports |
| 2 |
|
| 3 |
# Requires: |
| 4 |
# * A repository variable named REFERENCE_CHECKER_REPO with the name of the reference checker repo |
| 5 |
# within this fork of JSpecify. |
| 6 |
# * A secret named REFERENCE_CHECKER_WORKFLOW_PAT with a fine-grained personal access token that has |
| 7 |
# read permissions on metadata and read+write permissions on contents for the reference checker |
| 8 |
# repo within this fork of JSpecify. The token must be only for the single repo. |
| 9 |
|
| 10 |
on: |
| 11 |
push: |
| 12 |
branches: [ main ] |
| 13 |
paths-ignore: |
| 14 |
- 'docs/**' |
| 15 |
|
| 16 |
env: |
| 17 |
reference_checker_repo: ${{ github.repository_owner }}/${{ vars.reference_checker_repo }} |
| 18 |
|
| 19 |
defaults: |
| 20 |
run: |
| 21 |
shell: bash --noprofile --norc -e -o pipefail -x {0} |
| 22 |
|
| 23 |
jobs: |
| 24 |
udpate-reference-checker-reports: |
| 25 |
name: Update reference checker conformance test reports if necessary |
| 26 |
runs-on: ubuntu-latest |
| 27 |
steps: |
| 28 |
- name: Trigger workflow on ${{ env.reference_checker_repo }} |
| 29 |
run: | |
| 30 |
curl -L \ |
| 31 |
-X POST \ |
| 32 |
-H 'Accept: application/vnd.github+json' \ |
| 33 |
-H "Authorization: Bearer ${TOKEN}"\ |
| 34 |
-H 'X-GitHub-Api-Version: 2022-11-28' \ |
| 35 |
"https://api.github.com/repos/${reference_checker_repo}/dispatches" \ |
| 36 |
-d '{"event_type":"update-conformance-test-reports","client_payload":{}}' |
| 37 |
env: |
| 38 |
TOKEN: ${{ secrets.REFERENCE_CHECKER_WORKFLOW_PAT }} |