File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -13,20 +13,20 @@ jobs:
13
13
# Support for branches, non-forked-prs or forked-prs with a label
14
14
if : |
15
15
contains(github.event.pull_request.labels.*.name, 'safe-to-test') ||
16
- github.event_name != 'pull_request' ||
17
- (github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false)
16
+ ! startsWith( github.event_name, 'pull_request') ||
17
+ (startsWith( github.event_name, 'pull_request') && github.event.pull_request.head.repo.fork == false)
18
18
permissions :
19
19
checks : write
20
20
steps :
21
21
- name : Get sha commit
22
22
id : event
23
23
run : |
24
24
echo "DEBUG: event type(${{ github.event_name }})"
25
- if [ "${{ github.event_name != 'pull_request_target' }}" = "true" ] ; then
26
- echo "ref=${{ github.sha }}" >> "$GITHUB_OUTPUT"
27
- else
28
- echo "ref=${{ github.event.pull_request.head.sha }}" >> "$GITHUB_OUTPUT"
25
+ ref="${{ github.sha }}"
26
+ if [ "${{ startsWith(github.event_name, 'pull_request') }}" = "true" ] ; then
27
+ ref="${{ github.event.pull_request.head.sha }}"
29
28
fi
29
+ echo "ref=${ref}" >> "$GITHUB_OUTPUT"
30
30
- uses : actions/checkout@v4
31
31
with :
32
32
fetch-depth : 0
35
35
- uses : actions/setup-go@v5
36
36
with :
37
37
go-version-file : go.mod
38
- # Version: https://github.com/WillAbides/benchdiff-action/releases/tag/v0.3.3
38
+ # Version: https://github.com/WillAbides/benchdiff-action/releases/tag/v0.3.5
39
39
- uses : WillAbides/benchdiff-action@990b4c50b5420b485bf87e42c9f18234eba76fbc
40
40
id : benchdiff
41
41
with :
You can’t perform that action at this time.
0 commit comments