From ba92551ade9d231b2c13663f815b82804bcc60d3 Mon Sep 17 00:00:00 2001 From: SqrtMinusOne Date: Fri, 26 Nov 2021 17:46:40 +0300 Subject: [PATCH] feat(site): should trigger workflow --- .github/workflows/update-site.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/update-site.yml diff --git a/.github/workflows/update-site.yml b/.github/workflows/update-site.yml new file mode 100644 index 0000000..128ad02 --- /dev/null +++ b/.github/workflows/update-site.yml @@ -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