Skip to content

Commit 56dab42

Browse files
authored
Create deploy-trigger.yml
1 parent 1945fa4 commit 56dab42

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/deploy-trigger.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Trigger deploys in drydock for CPO updates
2+
3+
on:
4+
workflow_dispatch:
5+
workflow_call:
6+
secrets:
7+
DRYDOCK_PAT:
8+
required: true
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Trigger Workflow in Another Repository
15+
env:
16+
GH_TOKEN: ${{ secrets.DRYDOCK_PAT }}
17+
run: |
18+
# GitHub CLI api
19+
# https://cli.github.com/manual/gh_api
20+
21+
gh api \
22+
--method POST \
23+
-H "Accept: application/vnd.github+json" \
24+
-H "X-GitHub-Api-Version: 2022-11-28" \
25+
/repos/brownplt/pyret-drydock/dispatches \
26+
-f 'event_type=cpo-update' -F "client_payload[unit]=false" -F "client_payload[integration]=true"

0 commit comments

Comments
 (0)