File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 3434 - name : ' Download workflow_run artifact'
3535 if : github.event_name == 'workflow_run'
3636 uses : dawidd6/action-download-artifact@v11
37+ continue-on-error : true
3738 with :
3839 run_id : ${{ github.event.workflow_run.id }}
3940 name : pr_info
@@ -46,10 +47,10 @@ jobs:
4647 id : ' pr_output'
4748 run : |
4849 if [[ ! -f pr/pr_number ]]; then
49- echo "${{ github.event.pull_request .number }}" > pr/pr_number
50+ echo "${{ github.event.workflow_run.pull_requests[0] .number }}" > pr/pr_number
5051 fi
5152 if [[ ! -f pr/pr_sha ]]; then
52- echo "${{ github.event.pull_request.head.sha }}" > pr/pr_sha
53+ echo "${{ github.event.workflow_run.head_sha }}" > pr/pr_sha
5354 fi
5455 cat pr/*
5556 echo "pr_number=$(cat pr/pr_number)" >> "$GITHUB_OUTPUT"
You can’t perform that action at this time.
0 commit comments