Skip to content

Commit 0281d22

Browse files
committed
Add workflow dispatch action to trigger deploy
1 parent 096227c commit 0281d22

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/deploy-site.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Trigger deploy of polaris.shopify.com
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'polaris.shopify.com/**'
9+
10+
jobs:
11+
trigger-deploy:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Trigger deploy polaris.shopify.com
16+
uses: actions/github-script@v6
17+
with:
18+
github-token: ${{ secrets.POLARIS_SITE_PAT }}
19+
script: |
20+
await github.rest.actions.createWorkflowDispatch({
21+
owner: "shopify",
22+
repo: "polaris-site-container-builder",
23+
workflow_id: "trigger-deploy.yml",
24+
ref: "main"
25+
});

0 commit comments

Comments
 (0)