-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a94c4fa
commit 79fdcb1
Showing
1 changed file
with
25 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,32 @@ | ||
name: update-flake-lock | ||
name: Bump flake.lock | ||
|
||
on: | ||
workflow_dispatch: # allows manual triggering | ||
schedule: | ||
- cron: '0 0 * * 0' # runs weekly on Sunday at 00:00 | ||
- cron: "0 6 * * *" | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
lockfile: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Install Nix | ||
uses: DeterminateSystems/nix-installer-action@main | ||
- name: Update flake.lock | ||
uses: DeterminateSystems/update-flake-lock@main | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: cachix/install-nix-action@v20 | ||
|
||
- run: nix flake update | ||
|
||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
pr-title: "Update flake.lock" # Title of PR to be created | ||
pr-labels: | # Labels to be set on the PR | ||
dependencies | ||
automated | ||
commit_message: Bump flake.lock | ||
branch: main | ||
commit_options: '--no-verify --signoff' | ||
file_pattern: flake.lock | ||
commit_user_name: BOT NixOS Flake Update # defaults to "GitHub Actions" | ||
#commit_user_email: [email protected] # defaults to "[email protected]" | ||
commit_author: BOT NixOS Flake Update <[email protected]> # defaults to author of the commit that triggered the run | ||
skip_dirty_check: false | ||
skip_fetch: true |