File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -64,19 +64,20 @@ jobs:
6464 steps :
6565 - uses : actions/checkout@v4
6666
67- - name : Wait for CD Pipeline
68- 69- with :
70- ref : ${{ github.ref }}
71- check-name : ' build-nix (ubuntu-x64)'
72- repo-token : ${{ secrets.GITHUB_TOKEN }}
73- wait-interval : 10
67+ - name : Get latest CD Pipeline run
68+ id : get_run
69+ run : |
70+ # Get the latest successful CD Pipeline run for main branch
71+ RUN_ID=$(gh run list --workflow="CD Pipeline" --branch=main --status=success --limit=1 --json databaseId --jq='.[0].databaseId')
72+ echo "run_id=$RUN_ID" >> $GITHUB_OUTPUT
73+ env :
74+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7475
7576 - name : Download all artifacts
7677 uses : actions/download-artifact@v4
7778 with :
7879 path : artifacts
79- run-id : ${{ github .run_id }}
80+ run-id : ${{ steps.get_run.outputs .run_id }}
8081 github-token : ${{ secrets.GITHUB_TOKEN }}
8182
8283 - name : Display structure of downloaded files
You can’t perform that action at this time.
0 commit comments