Skip to content

Commit c10feb0

Browse files
committed
add github action to update flakes
1 parent 45f7a9f commit c10feb0

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: "Update flakes"
2+
on:
3+
repository_dispatch:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "51 2 * * 0"
7+
8+
jobs:
9+
createPullRequest:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Install Nix
14+
uses: cachix/install-nix-action@v31
15+
with:
16+
extra_nix_config: |
17+
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
18+
- uses: actions/create-github-app-token@v1
19+
id: app-token
20+
with:
21+
app-id: ${{ vars.CI_APP_ID }}
22+
private-key: ${{ secrets.CI_APP_PRIVATE_KEY }}
23+
- name: Update flakes
24+
run: nix flake update
25+
- name: Create Pull Request
26+
uses: peter-evans/create-pull-request@v7
27+
with:
28+
title: Update flakes
29+
token: ${{ steps.app-token.outputs.token }}
30+
labels: |
31+
auto-merge

0 commit comments

Comments
 (0)