25 lines
556 B
YAML
25 lines
556 B
YAML
|
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
|
||
|
|
||
|
|