-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (60 loc) · 1.92 KB
/
nix-flake-update.yaml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
name: Nix Flake update
on:
schedule:
- cron: "0 0 * * 0"
workflow_dispatch:
permissions:
contents: write
pull-requests: write
statuses: read
env:
NIXPKGS_ALLOW_UNFREE: 1
jobs:
nix:
runs-on: ubuntu-latest
steps:
- id: checkout
name: Checkout repository
uses: actions/checkout@v4
- id: install_nix
name: "Install Nix ❄️"
uses: cachix/install-nix-action@v26
- id: cachix
name: "Enable Cachix ❄️"
uses: cachix/cachix-action@v14
with:
name: ${{ secrets.CACHIX_CACHE_NAME }}
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
useDaemon: false
skipPush: false
- id: update_nix_flake
name: Update flake.lock
uses: DeterminateSystems/update-flake-lock@v21
with:
sign-commits: false
gpg-fingerprint: ${{ secrets.GPG_FINGERPRINT }}
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
git-author-email: "[email protected]"
git-author-name: "Nix Flake Bot"
git-committer-email: "[email protected]"
git-committer-name: "Nix Flake Bot"
- id: print_pr_number
name: Pull request number
run: |
echo PR number: ${{ steps.update_nix_flake.outputs.pull-request-number }}
#- name: Nix Flake update
# run: >
# nix flake update --verbose
#- name: Update flake.lock
# uses: stefanzweifel/git-auto-commit-action@v4
# with:
# commit_message: Update flake.lock
# branch: trunk
# commit_options: '--no-verify --signoff'
# file_pattern: flake.lock
# commit_user_name: Nix Flake Bot
# commit_author: Nix Flake Bot <[email protected]>
# skip_dirty_check: false
# skip_fetch: true