Skip to content

Commit

Permalink
integrate automerge enable in update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
luqmanishere committed May 9, 2024
1 parent b1695d3 commit 54cbe77
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/update-flake-lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,18 @@ jobs:
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Update flake.lock
id: update
uses: DeterminateSystems/update-flake-lock@main
with:
token: ${{ secrets.FLAKE_LOCK_TOKEN }}
pr-title: "Update flake.lock" # Title of PR to be created
pr-labels: | # Labels to be set on the PR
pr-title: 'Update flake.lock' # Title of PR to be created
pr-labels: | # Labels to be set on the PR
dependencies
automated
- name: Enable automerge on flake update PRs
run: gh pr merge --merge --auto "$PR_NUMBER" --repo "$OWNER/$REPO"
env:
GH_TOKEN: ${{ secrets.PAT }}
PR_NUMBER: ${{ steps.update.outputs.pull-request-number }}
OWNER: ${{ github.repository_owner }}
REPO: ${{ github.event.repository.name }}

0 comments on commit 54cbe77

Please sign in to comment.