Skip to content

Commit

Permalink
get last run_id of a completed run
Browse files Browse the repository at this point in the history
  • Loading branch information
aloneguid committed Jan 8, 2024
1 parent 52c3a36 commit fec734a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run_id=$(curl --request GET \
--url https://api.github.com/repos/${{ github.repository }}/actions/workflows/build.yml/runs \
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
| jq '.workflow_runs[0].id')
| jq '.workflow_runs[] | select(.status=="completed") | .id' | head -1)
echo "::set-output name=run-id::$run_id"
- name: ⬇️ Download last artifacts from build.yml
Expand Down

0 comments on commit fec734a

Please sign in to comment.