We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8192e71 commit eb1890aCopy full SHA for eb1890a
1 file changed
.github/workflows/trigger-deploy.yml
@@ -0,0 +1,26 @@
1
+name: Trigger blockr deploy
2
+
3
+on:
4
+ push:
5
+ branches: [main]
6
7
+jobs:
8
+ trigger:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - name: Generate app token
12
+ id: app-token
13
+ uses: actions/create-github-app-token@v1
14
+ with:
15
+ app-id: ${{ secrets.APP_ID }}
16
+ private-key: ${{ secrets.APP_PRIVATE_KEY }}
17
+ owner: BristolMyersSquibb
18
+ repositories: blockr
19
20
+ - name: Dispatch to blockr
21
+ run: |
22
+ curl -X POST \
23
+ -H "Accept: application/vnd.github+json" \
24
+ -H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \
25
+ https://api.github.com/repos/BristolMyersSquibb/blockr/dispatches \
26
+ -d '{"event_type":"deploy-site"}'
0 commit comments