Skip to content

Commit eb1890a

Browse files
committed
Add action to trigger docs build
1 parent 8192e71 commit eb1890a

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)