summaryrefslogtreecommitdiff
path: root/.github/workflows/update-lock.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/update-lock.yaml')
-rw-r--r--.github/workflows/update-lock.yaml16
1 files changed, 6 insertions, 10 deletions
diff --git a/.github/workflows/update-lock.yaml b/.github/workflows/update-lock.yaml
index e735b81..98af4ef 100644
--- a/.github/workflows/update-lock.yaml
+++ b/.github/workflows/update-lock.yaml
@@ -10,27 +10,23 @@ jobs:
update:
runs-on: ubuntu-latest
- permissions:
- contents: write
- pull-requests: write
-
steps:
- uses: actions/checkout@v4
- - name: install nix
- uses: nixbuild/nix-quick-install-action@v26
+ - name: Install Nix
+ uses: DeterminateSystems/nix-installer-action@v9
- - name: update lockfile
+ - name: Update lockfile & make PR
uses: DeterminateSystems/update-flake-lock@v20
id: update
with:
commit-msg: "flake: update inputs"
pr-title: "flake: update inputs"
- token: ${{ github.token }}
+ token: ${{ secrets.MERGE_TOKEN }}
- - name: enable auto-merge
+ - name: Enable auto-merge
shell: bash
run: gh pr merge --auto --rebase "$PR_ID"
env:
- GH_TOKEN: ${{ github.token }}
+ GH_TOKEN: ${{ secrets.MERGE_TOKEN }}
PR_ID: ${{ steps.update.outputs.pull-request-number }}