diff --git a/.forgejo/workflows/update-flake-lock.yml b/.forgejo/workflows/update-flake-lock.yml index c568f905..b3cf7ef8 100644 --- a/.forgejo/workflows/update-flake-lock.yml +++ b/.forgejo/workflows/update-flake-lock.yml @@ -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()