Update
This commit is contained in:
parent
e0feda87bf
commit
5e7d6643ba
1 changed files with 6 additions and 6 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue