adonis/.forgejo/workflows/update.yaml
toufic ar 28e3c4fbb8
All checks were successful
/ deploy (push) Successful in 41s
update workflow: stage changes before commit
2026-02-02 02:55:27 +02:00

24 lines
860 B
YAML

on:
workflow_dispatch:
schedule:
- cron: 0 0 * * 0
jobs:
update:
runs-on: nix-latest
steps:
- name: install packages
run: nix --extra-experimental-features "nix-command flakes" profile add nixpkgs#nodejs_24
- 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: commit and push update
run: |
git diff --exit-code flake.lock && exit 0 || echo ""
git add .
git commit -m "update flake.lock"
git push "https://actions_user:${{ secrets.ACTIONS_USER_TOKEN }}@git.toufy.me/toufy/adonis" "main"