diff --git a/.forgejo/workflows/update-flake-lock.yml b/.forgejo/workflows/update-flake-lock.yml index a8313613..c568f905 100644 --- a/.forgejo/workflows/update-flake-lock.yml +++ b/.forgejo/workflows/update-flake-lock.yml @@ -25,7 +25,15 @@ jobs: git config --global user.email '${{ github.actor }}@sysctl.io' git config --global user.name '${{ github.actor }}' git commit -am "[${{ github.job }}] [ACT] Flake Lock Update" - git push https://${{ secrets.REPO_RW_TOKEN }}@git.sysctl.io/${{ github.repository }}.git + git push + - 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"}' - name: Send Notification uses: actions/gotify-action@master if: always()