Skip to content

Commit 529e40b

Browse files
committed
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.
1 parent 46747f5 commit 529e40b

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/main-deploy.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Community Plugins — Release
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
- "work/ss/main-branch"
8+
9+
jobs:
10+
trigger-deploy:
11+
name: Trigger Deployment
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Dispatch to plugins-automation
15+
env:
16+
GH_TOKEN: ${{ secrets.AUTOMATION_DISPATCH_TOKEN }}
17+
SHA: ${{ github.sha }}
18+
run: |
19+
printf '{"event_type":"community-plugins-deploy","client_payload":{"sha":"%s"}}' "$SHA" \
20+
| gh api repos/squaredup/plugins-automation/dispatches --method POST --input -

0 commit comments

Comments
 (0)