Skip to content

Commit

Permalink
Fix the branch. It should be the PR branch, not master.
Browse files Browse the repository at this point in the history
  • Loading branch information
afinetooth committed Oct 1, 2024
1 parent 4ba2801 commit 605efaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:
id: get_run_id
run: |
curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
"https://api.github.com/repos/${{ github.repository }}/actions/workflows/${{ steps.get_workflow_id.outputs.workflow-id }}/runs?status=success&branch=master" \
"https://api.github.com/repos/${{ github.repository }}/actions/workflows/${{ steps.get_workflow_id.outputs.workflow-id }}/runs?status=success&branch=${{ github.head_ref }}" \
| jq -r '.workflow_runs[0].id'
- name: Echo the run-id
Expand Down

0 comments on commit 605efaa

Please sign in to comment.