Skip to content

Commit aa8e133

Browse files
committed
fixed missing artifacts bug
1 parent 2ec7cda commit aa8e133

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,20 @@ jobs:
6464
steps:
6565
- uses: actions/checkout@v4
6666

67-
- name: Wait for CD Pipeline
68-
uses: lewagon/[email protected]
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

0 commit comments

Comments
 (0)