commit f6435f749611a207859ef7862eaad0761d4a4376 Author: ember Date: Mon Mar 16 16:29:38 2026 +0000 Add .forgejo/workflows/trigger.yaml diff --git a/.forgejo/workflows/trigger.yaml b/.forgejo/workflows/trigger.yaml new file mode 100644 index 0000000..fcf0068 --- /dev/null +++ b/.forgejo/workflows/trigger.yaml @@ -0,0 +1,18 @@ +name: Trigger CI Pipeline + +on: + push: + branches: + - main + +jobs: + dispatch: + runs-on: ubuntu-latest + steps: + - name: Trigger build in ci-pipelines repo + run: | + curl -s -X POST \ + "http://forgejo.tooling.svc.cluster.local:3000/api/v1/repos/ember/ci-pipelines/dispatches" \ + -H "Authorization: token ${{ secrets.CI_DISPATCH_TOKEN }}" \ + -H "Content-Type: application/json" \ + -d '{"event_type": "continuwuity-push", "client_payload": {"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}}'