snowflake/.forgejo/workflows/nix-flake-update.yml

25 lines
556 B
YAML
Raw Normal View History

2023-10-21 01:11:22 -04:00
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