ci: dispatch event to `revanced/revanced-documentation` on push to `/docs`

This commit is contained in:
oSumAtrIX 2023-01-08 14:46:13 +01:00
parent 19200eacc1
commit 6bd7d42e32
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
name: Update documentation
on:
push:
paths:
- docs/**
jobs:
trigger:
runs-on: ubuntu-latest
name: Dispatch event to documentation repository
steps:
- uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.DOCUMENTATION_REPO_ACCESS_TOKEN }}
repository: revanced/revanced-documentation
event-type: update-documentation
client-payload: '{"repo": "${{ github.event.repository.name }}", "ref": "${{ github.ref }}"}'