generated from nix-community/nur-packages-template
-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (39 loc) · 1.31 KB
/
update-flake.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Update flake inputs
on:
schedule:
- cron: '0 1 * * 0'
workflow_dispatch:
env:
NIX_CONFIG: "access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}"
jobs:
test:
name: Update and create PR
runs-on: ubuntu-22.04
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Nix
uses: cachix/install-nix-action@v22
- name: Run nix flake update
run: >
nix flake update
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
add-paths: |
flake.lock
title: "flake: automatic update of nix flake inputs"
body: |
Update nix flake inputs to the latest revision.
PR auto-generated by [create-pull-request][1].
[1]: https://github.com/peter-evans/create-pull-request
branch: flake-update-action-pr
delete-branch: true
commit-message: "flake: update nix flake inputs to the latest revision"
committer: GitHub <noreply@github.com>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
assignees: imincik
reviewers: imincik
token: ${{ secrets.FLAKE_AUTOUPDATE_TOKEN }}