Skip to content

Commit b4ff16f

Browse files
authored
Merge pull request #48 from squaredup/work/ss/main-branch
Add workflow to trigger community plugins release
2 parents 46747f5 + a8f3c28 commit b4ff16f

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/main-deploy.yaml

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

0 commit comments

Comments
 (0)