We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c66fb58 commit 75cbe5bCopy full SHA for 75cbe5b
1 file changed
.github/workflows/vartest.yml
@@ -15,6 +15,14 @@ jobs:
15
test:
16
runs-on: ubuntu-latest
17
steps:
18
+ - name: Get Previous Run ID
19
+ id: get_id
20
+ env:
21
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22
+ run: |
23
+ # Fetches the ID of the last completed run for the current workflow
24
+ PREVIOUS_RUN_ID=$(gh run list --workflow "${{ github.workflow }}" --status completed --limit 1 --json databaseId --jq '.[0].databaseId')
25
+ echo "previous_run_id=$PREVIOUS_RUN_ID" >> $GITHUB_OUTPUT
26
- name: Download test artifact
27
uses: actions/download-artifact@v8
28
with:
0 commit comments