From 46ff9685ef5e96523917fbce0b4c2550ae0c7535 Mon Sep 17 00:00:00 2001 From: Eric Cornelissen Date: Mon, 18 Jan 2021 13:18:02 +0100 Subject: [PATCH] Add "Publish" job for automated website updates (#4787) --- .github/workflows/publish.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8c6049d4..a3751c9a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -78,6 +78,17 @@ jobs: - name: Trigger simple-icons-font release run: | curl -X POST \ - -H "Authorization: Bearer ${{ secrets.SIMPLE_ICONS_FONT_TOKEN }}" \ + -H "Authorization: Bearer ${{ secrets.REMOTE_DISPATCH_TOKEN }}" \ -d '{"ref":"develop"}' \ https://api.github.com/repos/simple-icons/simple-icons-font/actions/workflows/auto-release.yml/dispatches + website: + name: Trigger simple-icons-website update + needs: npm + runs-on: ubuntu-latest + steps: + - name: Trigger simple-icons-website update + run: | + curl -X POST \ + -H "Authorization: Bearer ${{ secrets.REMOTE_DISPATCH_TOKEN }}" \ + -d '{"ref":"master"}' \ + https://api.github.com/repos/simple-icons/simple-icons-website/actions/workflows/auto-release.yml/dispatches