Create update.yml
This commit is contained in:
parent
c76802e44a
commit
67a794594b
1 changed files with 28 additions and 0 deletions
28
.github/workflows/update.yml
vendored
Normal file
28
.github/workflows/update.yml
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
name: update-flake
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 * * *"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-flake:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4.0.0
|
||||||
|
|
||||||
|
- name: "Install Nix ❄️"
|
||||||
|
uses: cachix/install-nix-action@v23
|
||||||
|
|
||||||
|
- name: "Update flake.lock ❄️"
|
||||||
|
run: |
|
||||||
|
nix flake update
|
||||||
|
|
||||||
|
- name: "Commit and push"
|
||||||
|
uses: EndBug/add-and-commit@v9
|
||||||
|
with:
|
||||||
|
add: "flake.lock"
|
||||||
|
default_author: github_actions
|
||||||
|
message: "chore: update flake.lock"
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue