File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 66 steps :
77 - uses : actions/checkout@v4
88 - uses : DeterminateSystems/determinate-nix-action@v3
9- - name : Update flake.lock
9+ - id : update
10+ name : Update flake.lock
1011 uses : DeterminateSystems/update-flake-lock@main
1112 with :
1213 pr-labels : |-
1314 dependencies
1415 automated
1516 pr-title : ' chore: update flake.lock'
17+ - env :
18+ GH_TOKEN : ${{ secrets.GH_TOKEN_FOR_UPDATES }}
19+ if : steps.update.outputs.pull-request-number != ''
20+ name : Enable automerge
21+ run : gh pr merge --auto --rebase ${{ steps.update.outputs.pull-request-number }}
1622name : Update flake.lock
1723" on " :
1824 schedule :
Original file line number Diff line number Diff line change 166166 uses = "DeterminateSystems/determinate-nix-action@v3" ;
167167 }
168168 {
169+ id = "update" ;
169170 name = "Update flake.lock" ;
170171 uses = "DeterminateSystems/update-flake-lock@main" ;
171172 with_ = {
172173 pr-title = "chore: update flake.lock" ;
173174 pr-labels = "dependencies\n automated" ;
174175 } ;
175176 }
177+ {
178+ name = "Enable automerge" ;
179+ if_ = "steps.update.outputs.pull-request-number != ''" ;
180+ run = "gh pr merge --auto --rebase \ ${{ steps.update.outputs.pull-request-number }}" ;
181+ env = {
182+ GH_TOKEN = "\ ${{ secrets.GH_TOKEN_FOR_UPDATES }}" ;
183+ } ;
184+ }
176185 ] ;
177186 } ;
178187 } ;
You can’t perform that action at this time.
0 commit comments