mirror of
https://github.com/heyman/heynote.git
synced 2025-06-28 13:31:38 +02:00
Add github action workflow that triggers build of heynote.com
This commit is contained in:
parent
346805bb81
commit
3963e8fb30
25
.github/workflows/trigger-website-build.yml
vendored
Normal file
25
.github/workflows/trigger-website-build.yml
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
name: Trigger Website Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
trigger:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Trigger Website Build
|
||||||
|
run: |
|
||||||
|
# Set the required variables
|
||||||
|
repo_owner="heyman"
|
||||||
|
repo_name="heynote-website"
|
||||||
|
event_type="trigger-workflow"
|
||||||
|
|
||||||
|
curl -L \
|
||||||
|
-X POST \
|
||||||
|
-H "Accept: application/vnd.github+json" \
|
||||||
|
-H "Authorization: Bearer ${{ secrets.HEYNOTE_WEBSITE_GITHUB_ACCESS_TOKEN }}" \
|
||||||
|
-H "X-GitHub-Api-Version: 2022-11-28" \
|
||||||
|
https://api.github.com/repos/$repo_owner/$repo_name/dispatches \
|
||||||
|
-d "{\"event_type\": \"$event_type\"}"
|
Loading…
x
Reference in New Issue
Block a user