From 0717b0f8727c87bf83959300dedb0af4a26b60d6 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Tue, 22 Sep 2020 00:22:12 +0200 Subject: [PATCH] CI: Add a job to trigger rebuilding the website When the changelog over here changes, the website would need to be rebuilt. --- .github/workflows/trigger_website.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/trigger_website.yml diff --git a/.github/workflows/trigger_website.yml b/.github/workflows/trigger_website.yml new file mode 100644 index 00000000..37222bfe --- /dev/null +++ b/.github/workflows/trigger_website.yml @@ -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 }}