This commit is contained in:
parent
4482f2a285
commit
78c8682e93
1 changed files with 23 additions and 0 deletions
23
.forgejo/workflows/update.yaml
Normal file
23
.forgejo/workflows/update.yaml
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: 0 0 * * 0
|
||||||
|
jobs:
|
||||||
|
update:
|
||||||
|
runs-on: nix-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout repo
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
- name: configure git
|
||||||
|
run: |
|
||||||
|
git config --global user.email "forgejo@toufy.me"
|
||||||
|
git config --global user.name "actions_user"
|
||||||
|
- name: update flake.lock
|
||||||
|
run: nix --extra-experimental-features "nix-command flakes" flake update
|
||||||
|
- name: diff flake.lock
|
||||||
|
run: git diff --exit-code flake.lock && exit 0
|
||||||
|
- name: commit and push update
|
||||||
|
run: |
|
||||||
|
git add .
|
||||||
|
git commit -m "update flake.lock"
|
||||||
|
git push "https://actions_user:${{ secrets.WRITE_TOKEN }}@git.toufy.me/toufy/adonis" "main"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue