feat(site): should trigger workflow

This commit is contained in:
Pavel Korytov 2021-11-26 17:46:40 +03:00
parent c30062c70f
commit ba92551ade

17
.github/workflows/update-site.yml vendored Normal file
View file

@ -0,0 +1,17 @@
name: Update Site
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
trigger_update:
runs-on: ubuntu-20.04
steps:
- name: Trigger site update
run: |
curl -X POST -u "$sqrtminusone:${{ secrets.ACCESS_TOKEN }}" \
-H "Accept: application/vnd.github.everest-preview+json"\
-H "Content-Type: application/json" \
--data '{"event_type": "build_application"}' \
https://api.github.com/repos/sqrtminusone/sqrtminusone.github.io/dispatches