CI: Add a job to trigger rebuilding the website

When the changelog over here changes, the website would need to be
rebuilt.
This commit is contained in:
Vishesh Handa
2020-09-22 00:22:12 +02:00
parent 0a5e948710
commit 0717b0f872

15
.github/workflows/trigger_website.yml vendored Normal file
View File

@ -0,0 +1,15 @@
name: Trigger Website
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Dispatch Event to GitJournal.io
run: 'curl -X POST ''https://api.github.com/repos/GitJournal/gitjournal.io/actions/workflows/main.yaml/dispatches'' -u "vHanda:${{secrets.ACCESS_TOKEN_GITHUB}}" -H "Content-Type: application/json" --data ''{"ref": "master"}'''
env:
ACCESS_TOKEN_GITHUB: ${{ secrets.ACCESS_TOKEN_GITHUB }}