File tree 1 file changed +36
-0
lines changed
1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This file was added by Pulumi and should not be edited manually.
2
+
3
+ name : Merge checks
4
+
5
+ on :
6
+ push :
7
+ branches :
8
+ - " **"
9
+ pull_request_target :
10
+
11
+ jobs :
12
+ merge-checks :
13
+ runs-on : ubuntu-latest
14
+ timeout-minutes : 5
15
+
16
+ if : github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
17
+
18
+ permissions :
19
+ contents : read
20
+ statuses : write
21
+
22
+ steps :
23
+ - uses : actions/checkout@v4
24
+
25
+ - uses : actions/github-script@v7
26
+ id : get-head-hash
27
+ with :
28
+ result-encoding : string
29
+ script : |
30
+ core.setOutput("value", context.eventName == "pull_request_target" ? context.payload.pull_request.head.sha : context.sha);
31
+
32
+ - name : Merge checks
33
+ uses : midnightcommander/action-merge-checks@master
34
+ with :
35
+ github_token : ${{ secrets.GITHUB_TOKEN }}
36
+ head_sha : ${{ steps.get-head-hash.outputs.value }}
You can’t perform that action at this time.
0 commit comments