upgrade-flakes: use github app

This commit is contained in:
Jörg Thalheim 2025-03-13 10:40:06 +01:00 committed by Jörg Thalheim
parent d202efd6b8
commit 2f9b8fff01

View file

@ -18,6 +18,11 @@ jobs:
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.CI_APP_ID }}
private-key: ${{ secrets.CI_APP_PRIVATE_KEY }}
- name: Update flakes
run: |
nix flake update
@ -27,3 +32,8 @@ jobs:
nix run .#update-dev-private-narHash
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
title: Update flakes
token: ${{ steps.app-token.outputs.token }}
labels: |
auto-merge