Skip to content

Commit 09b289f

Browse files
committed
Use previous run id to download artifact
1 parent 3107a28 commit 09b289f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/vartest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ jobs:
2424
run: |
2525
# Fetches the ID of the last completed run for the current workflow
2626
PREVIOUS_RUN_ID=$(gh run list --workflow "${{ github.workflow }}" --status completed --limit 1 --json databaseId --jq '.[0].databaseId')
27-
echo "previous_run_id=$PREVIOUS_RUN_ID"
27+
echo "previous_run_id=$PREVIOUS_RUN_ID" >> "$GITHUB_ENV"
2828
- name: Download test artifact
2929
uses: actions/download-artifact@v8
3030
with:
3131
skip-decompress: true
32-
run-id: 24433840587
32+
run-id: $previous_run_id
3333
- name: Display structure of downloaded files
3434
run: ls -R
3535
- name: Create test file

0 commit comments

Comments
 (0)