-
-
Notifications
You must be signed in to change notification settings - Fork 292
30 lines (29 loc) · 834 Bytes
/
update-flake-lock.yml
File metadata and controls
30 lines (29 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: "Update flakes"
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 1,4"
jobs:
createPullRequest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install Nix
uses: cachix/install-nix-action@v31
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.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Update flakes
run: nix flake update
- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
title: "flake: update inputs"
token: ${{ steps.app-token.outputs.token }}
labels: |
auto-merge