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 34
34
- name : ' Download workflow_run artifact'
35
35
if : github.event_name == 'workflow_run'
36
36
uses : dawidd6/action-download-artifact@v11
37
+ continue-on-error : true
37
38
with :
38
39
run_id : ${{ github.event.workflow_run.id }}
39
40
name : pr_info
@@ -46,10 +47,10 @@ jobs:
46
47
id : ' pr_output'
47
48
run : |
48
49
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
50
51
fi
51
52
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
53
54
fi
54
55
cat pr/*
55
56
echo "pr_number=$(cat pr/pr_number)" >> "$GITHUB_OUTPUT"
You can’t perform that action at this time.
0 commit comments