From a8f3c28fdc997bebac33181c3573f73b25fbd50b Mon Sep 17 00:00:00 2001 From: Shaswot Subedi Date: Thu, 14 May 2026 15:43:26 +0100 Subject: [PATCH] Add workflow to trigger community plugins release Add .github/workflows/main-deploy.yaml which triggers on pushes to main and work/ss/main-branch-flow. The job dispatches a repository_dispatch to squaredup/plugins-automation to kick off community plugin releases, sending the current commit SHA as client_payload and using the AUTOMATION_DISPATCH_TOKEN secret with the gh CLI. --- .github/workflows/main-deploy.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/main-deploy.yaml diff --git a/.github/workflows/main-deploy.yaml b/.github/workflows/main-deploy.yaml new file mode 100644 index 0000000..953748f --- /dev/null +++ b/.github/workflows/main-deploy.yaml @@ -0,0 +1,19 @@ +name: Community Plugins — Release + +on: + push: + branches: + - "main" + +jobs: + trigger-deploy: + name: Trigger Deployment + runs-on: ubuntu-latest + steps: + - name: Dispatch to plugins-automation + env: + GH_TOKEN: ${{ secrets.AUTOMATION_DISPATCH_TOKEN }} + SHA: ${{ github.sha }} + run: | + printf '{"event_type":"community-plugins-deploy","client_payload":{"sha":"%s"}}' "$SHA" \ + | gh api repos/squaredup/plugins-automation/dispatches --method POST --input -