Add "Publish" job for automated website updates (#4787)

This commit is contained in:
Eric Cornelissen 2021-01-18 13:18:02 +01:00 committed by GitHub
parent 598863834f
commit 46ff9685ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,6 +78,17 @@ jobs:
- name: Trigger simple-icons-font release - name: Trigger simple-icons-font release
run: | run: |
curl -X POST \ curl -X POST \
-H "Authorization: Bearer ${{ secrets.SIMPLE_ICONS_FONT_TOKEN }}" \ -H "Authorization: Bearer ${{ secrets.REMOTE_DISPATCH_TOKEN }}" \
-d '{"ref":"develop"}' \ -d '{"ref":"develop"}' \
https://api.github.com/repos/simple-icons/simple-icons-font/actions/workflows/auto-release.yml/dispatches 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