File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #
2+ # Automatically approves and queues for merge any pull requests with a branch
3+ # name starting with auto/, that are opened by keyman-server.
4+ #
5+ name : Auto Approve and Merge PRs from keyman-server
6+
7+ on : pull_request_target
8+
9+ jobs :
10+ auto-approve :
11+ if : github.actor == 'keyman-server' && startsWith(github.head_ref, 'auto/')
12+ runs-on : ubuntu-latest
13+ env :
14+ GH_TOKEN : ${{ secrets.AUTO_PR_APPROVAL_BY_KEYMAN_STATUS }}
15+ permissions : write-all
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v4.1.5
19+ with :
20+ sparse-checkout : |
21+ README.md
22+ sparse-checkout-cone-mode : false
23+ - name : Approve pull request
24+ run : |
25+ gh pr review --approve ${{github.head_ref}}
26+ - name : Enable auto-merge
27+ run : |
28+ gh pr merge --merge --auto ${{github.head_ref}}
You can’t perform that action at this time.
0 commit comments