This commit is contained in:
albert 2025-02-12 15:43:22 -08:00
parent e0feda87bf
commit 5e7d6643ba
Signed by: albert
GPG key ID: 3895DD267CA11BA9

View file

@ -3,7 +3,6 @@ name: update-flake-lock
on:
workflow_dispatch: # allows manual triggering
schedule:
# - cron: '0 0 * * 0' # runs weekly on Sunday at 00:00
- cron: '0 8 * * *' # Daily 8AM UTC
jobs:
update-flake-lock:
@ -29,11 +28,12 @@ jobs:
- name: Trigger Deploy Workflow
if: success()
run: |
curl -X POST \
-H "Content-Type: application/json" \
-H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \
https://git.sysctl.io/repos/albert/nix/actions/workflows/deploy/dispatches \
-d '{"event_type": "deploy-rs-start"}'
curl -X POST -v \
-H "Authorization: token ${{ secrets.FORGEJO_TOKEN }}" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://git.sysctl.io/api/v1/repos/albert/nix/actions/workflows/deploy.yml/dispatches" \
--data-binary '{"ref":"main"}'
- name: Send Notification
uses: actions/gotify-action@master
if: always()