From 6bd7d42e32450974a52e1bb9df4a31512d399842 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sun, 8 Jan 2023 14:46:13 +0100 Subject: [PATCH] ci: dispatch event to `revanced/revanced-documentation` on push to `/docs` --- .github/workflows/update-documentation.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/update-documentation.yml diff --git a/.github/workflows/update-documentation.yml b/.github/workflows/update-documentation.yml new file mode 100644 index 0000000..aa0ed1b --- /dev/null +++ b/.github/workflows/update-documentation.yml @@ -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 }}"}'