auto update push rights
This commit is contained in:
@ -1,5 +1,9 @@
|
|||||||
name: update the nix flake lock automatically every week
|
name: update the nix flake lock automatically every week
|
||||||
run-name: update
|
run-name: update
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 4 * * 1"
|
- cron: "0 4 * * 1"
|
||||||
@ -17,3 +21,11 @@ jobs:
|
|||||||
|
|
||||||
- name: run the update
|
- name: run the update
|
||||||
run: nix flake 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
|
||||||
|
|||||||
Reference in New Issue
Block a user