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 8c175bd commit 81e16d0Copy full SHA for 81e16d0
1 file changed
.github/workflows/vartest.yml
@@ -22,7 +22,11 @@ jobs:
22
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23
run: |
24
# Fetches the ID of the last completed run for the current workflow
25
- PREVIOUS_RUN_ID=$(gh run list --workflow "${{ github.workflow }}" --status completed --limit 1 --json databaseId --jq '.[0].databaseId')
+ PREVIOUS_RUN_ID=$(gh run list --workflow "${{ github.workflow }}" \
26
+ --status success \
27
+ --limit 1 \
28
+ --json databaseId \
29
+ --jq '.[0].databaseId')
30
echo "previous_run_id=$PREVIOUS_RUN_ID" >> "$GITHUB_OUTPUT"
31
- name: Test previous run id
32
run: echo "${{ steps.get_id.outputs.previous_run_id }}"
0 commit comments