-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from StarrFox/use_better_lock_action
use better lock updater
- Loading branch information
Showing
1 changed file
with
9 additions
and
18 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,27 +1,18 @@ | ||
name: "Update flake.lock" | ||
|
||
name: update-flake-lock | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 1 1 * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update: | ||
lockfile: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Install Nix | ||
uses: DeterminateSystems/nix-installer-action@main | ||
|
||
- run: nix develop --command nix flake update | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
uses: DeterminateSystems/nix-installer-action@v1 | ||
- name: Update flake.lock | ||
uses: DeterminateSystems/update-flake-lock@v19 | ||
with: | ||
title: "[CI] Update flake.lock" | ||
branch: update | ||
branch-suffix: timestamp | ||
delete-branch: true | ||
reviewers: vbe0201 | ||
pr-title: "Update flake.lock" # Title of PR to be created |