We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1945fa4 commit 56dab42Copy full SHA for 56dab42
.github/workflows/deploy-trigger.yml
@@ -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