ci: PR checker interval (#1315) #81
Workflow file for this run
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: Documentation CI - call downstream workflow | |
on: | |
push: | |
tags: | |
- "v*" | |
jobs: | |
call_docs_ci_downstream_workflow: | |
runs-on: ubuntu-latest | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN_NVIDIA_CI_CD }} | |
GIT_TAG: ${{ github.ref_name }} | |
steps: | |
- run: | | |
gh workflow run docs-ci.yaml \ | |
--repo ${{ github.repository_owner }}/network-operator-docs \ | |
--ref main \ | |
--field git_tag=$GIT_TAG | |
gh run list --repo ${{ github.repository_owner }}/network-operator-docs --workflow docs-ci.yaml --json url -q '.[0].url' # print downstream workflow's last run URL | |
run_id=$(gh run list --repo ${{ github.repository_owner }}/network-operator-docs --workflow docs-ci.yaml --json databaseId -q '.[0].databaseId') # lookup downstream workflow's last run ID | |
gh run watch $run_id --repo ${{ github.repository_owner }}/network-operator-docs --exit-status # set exit code based on downstream workflow's result |