File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change 4
4
workflow_dispatch :
5
5
schedule :
6
6
- cron : " 38 0 * * 0,4"
7
- permissions :
8
- pull-requests : write
9
- contents : write
10
7
jobs :
11
8
createPullRequest :
12
9
runs-on : ubuntu-latest
13
10
steps :
14
11
- uses : actions/checkout@v4
15
12
- name : Install Nix
16
13
uses : cachix/install-nix-action@v31
14
+ - name : Create GitHub App token
15
+ uses : actions/create-github-app-token@v2
16
+ id : app-token
17
17
with :
18
- github_access_token : ${{ secrets.GITHUB_TOKEN }}
18
+ app-id : ${{ vars.CI_APP_ID }}
19
+ private-key : ${{ secrets.CI_APP_PRIVATE_KEY }}
20
+ permission-contents : write
21
+ permission-pull-requests : write
19
22
- name : Update flake.lock
20
23
uses : DeterminateSystems/update-flake-lock@v26
21
- with :
22
- pr-labels : | # Labels to be set on the PR
23
- merge-queue
24
+ id : pr
25
+ - name : Enable Automerge
26
+ run : gh pr merge --auto --merge ${{ steps.pr.outputs.pull-request-number }}
27
+ env :
28
+ GH_TOKEN : ${{ steps.app-token.outputs.token }}
You can’t perform that action at this time.
0 commit comments