32 lines
663 B
YAML
32 lines
663 B
YAML
name: update the nix flake lock automatically every week
|
|
run-name: update
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 4 * * 1"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
update:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: get repo
|
|
uses: actions/checkout@v4.2.2
|
|
|
|
- name: install nix
|
|
uses: https://github.com/cachix/install-nix-action@v31
|
|
|
|
- name: run the update
|
|
run: nix flake update
|
|
|
|
- name: Commit and push
|
|
run: |
|
|
git config user.name "Update action"
|
|
git config user.email "update-action@no-one.com"
|
|
git add .
|
|
git commit -m "Auto update"
|
|
git push
|