mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-12-26 22:24:59 +08:00
upgrade-flakes: use github app
This commit is contained in:
parent
d202efd6b8
commit
2f9b8fff01
1 changed files with 10 additions and 0 deletions
10
.github/workflows/upgrade-flakes.yml
vendored
10
.github/workflows/upgrade-flakes.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue