Skip to content

Commit 0496750

Browse files
GitHub Actions: Added trigger-build-web-page.yml
1 parent 1d9aec2 commit 0496750

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Trigger Build Web Page
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Build Emscripten"]
6+
types:
7+
- completed
8+
9+
jobs:
10+
send-notify:
11+
runs-on: ubuntu-latest
12+
if: ${{ github.event.workflow_run.event == 'push' && github.event.workflow_run.head_branch == 'master' }}
13+
steps:
14+
- name: Send notification to DiligentGraphics.github.io
15+
env:
16+
TARGET_REPO_TOKEN: ${{ secrets.PAGES_BUILD_AND_DEPLOY }}
17+
run: |
18+
curl -L \
19+
-X POST \
20+
-H "Accept: application/vnd.github+json" \
21+
-H "Authorization: Bearer $TARGET_REPO_TOKEN" \
22+
-H "X-GitHub-Api-Version: 2022-11-28" \
23+
https://api.github.com/repos/DiligentGraphics/DiligentGraphics.github.io/dispatches \
24+
--data '{ "event_type": "rebuild-wasm-modules" }'

0 commit comments

Comments
 (0)