File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,26 @@ jobs:
19
19
runs-on : ubuntu-latest
20
20
if : github.event.workflow_run.conclusion == 'success'
21
21
steps :
22
- - uses : actions/checkout@v4
22
+ - name : Checkout branch or tag
23
+ uses : actions/checkout@v4
24
+ if : github.event.workflow_run.event != 'pull_request'
23
25
with :
24
26
repository : ${{ github.event.workflow_run.head_repository.full_name }}
25
27
ref : ${{ github.event.workflow_run.head_branch }}
26
28
fetch-depth : 0
27
29
30
+ - name : Checkout Pull Request merge result
31
+ uses : actions/checkout@v4
32
+ if : github.event.workflow_run.event == 'pull_request'
33
+ with :
34
+ ref : refs/pull/${{ github.event.workflow_run.pull_requests[0].number }}/merge
35
+ fetch-depth : 0
36
+
37
+ - name : Git info
38
+ run : |
39
+ git status
40
+ git log -n 5 --oneline
41
+
28
42
- name : ' Download code coverage'
29
43
uses : actions/github-script@v7
30
44
with :
You can’t perform that action at this time.
0 commit comments