File tree 1 file changed +31
-0
lines changed
1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : " Check auto-mergeability of PR"
2
+ on :
3
+ # use pull_request_target to also run on PRs with merge conflict
4
+ pull_request_target :
5
+ types : [labeled, unlabeled, ready_for_review]
6
+ pull_request_review :
7
+ types : [submitted, dismissed]
8
+
9
+ permissions :
10
+ contents : read
11
+ statuses : write
12
+ pull-requests : write
13
+ issues : write
14
+
15
+ jobs :
16
+ action :
17
+ name : check-auto-mergeability-of-pr
18
+ runs-on : ubuntu-latest
19
+ steps :
20
+ - uses : actions/checkout@v4
21
+ with :
22
+ repository : flyingcircusio/fc-nixos-release-tools
23
+ ref : ' PL-133248-auto-merge'
24
+ - uses : cachix/install-nix-action@v30
25
+ - name : build release tooling
26
+ run : |
27
+ nix build .#
28
+ - run : |
29
+ ./result/bin/auto-merge check-pr ${{ github.event.number }}
30
+ env:
31
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments