Skip to content

Commit 950e7d8

Browse files
committed
fix(ci): Enable auto-merge on automated flake.lock PRs
1 parent 4a8a2f4 commit 950e7d8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/update-flake.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ jobs:
1313
run: nix flake update
1414
- name: Create Pull Request
1515
uses: peter-evans/create-pull-request@v8
16+
id: create-pr
1617
with:
1718
commit-message: "flake: update dependencies"
1819
title: "[automation] update flake dependencies"
1920
branch: "automation/update-flake-dependencies"
21+
- name: Enable PR auto-merge on CI success
22+
run: GH_TOKEN="${{ secrets.GITHUB_TOKEN }}" gh pr merge --squash --delete-branch --auto ${{ steps.create-pr.outputs.pull-request-number }}

0 commit comments

Comments
 (0)