-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (36 loc) · 1.19 KB
/
update.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
name: update
on:
schedule:
- cron: '0 2 * * 6'
workflow_dispatch:
jobs:
update:
name: Update flake inputs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ssh-key: ${{ secrets.PR_CREATE_KEY }}
- uses: cachix/install-nix-action@v18
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
# Used only for things like nix-prefetch-*, which do not yet
# seem to universally support flakes
nix_path: nixpkgs=channel:nixos-unstable
- uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GIT_SIGNING_KEY }}
git_user_signingkey: true
git_commit_gpgsign: true
git_committer_name: GitHub automation
git_committer_email: tm@tlater.net
- run: nix flake update --commit-lock-file
- run: |
echo -e '[keys]\ngithub = "${{ secrets.GITHUB_TOKEN }}"' > /tmp/github-key.toml
nix run .#commit-nvfetcher -L
- uses: peter-evans/create-pull-request@v4
with:
branch: bot/update
delete-branch: true
title: Update flake inputs