update-deployment-workflow #18
1 changed files with 24 additions and 0 deletions
24
.forgejo/workflows/nix-flake-update.yml
Normal file
24
.forgejo/workflows/nix-flake-update.yml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
name: nix flake update
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 4 1 * *"
|
||||||
|
jobs:
|
||||||
|
update:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: install nix action
|
||||||
|
uses: https://github.com/DeterminateSystems/nix-installer-action@v5
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GH_TOKEN }}
|
||||||
|
- name: create branch
|
||||||
|
run: |
|
||||||
|
git branch update-flake-lock
|
||||||
|
git checkout update-flake-lock
|
||||||
|
- name: update flake.lock
|
||||||
|
run: nix flake update
|
||||||
|
- name: commit changes
|
||||||
|
run: git
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue