-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (29 loc) · 1.07 KB
/
update_flake_lock.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
# Based on https://github.com/reckenrode/nixos-configs flake
name: Update flake.lock
on:
workflow_dispatch:
schedule:
- cron: "50 1 * * *" # Because Nothing Good Happens After 2 A.M.
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.SSH_KEY }}
- uses: cachix/install-nix-action@v27
#with:
# github_access_token: ${{ secrets.TOKEN }}
- run: nix flake update
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update flake.lock
branch: main
commit_options: '--no-verify --signoff'
file_pattern: flake.lock
commit_user_name: Flake Bot # defaults to "GitHub Actions"
#commit_user_email: my-github-actions-bot@example.org # defaults to "actions@github.com"
commit_author: Flake Bot <actions@github.com> # defaults to author of the commit that triggered the run
skip_dirty_check: false
skip_fetch: true