From 42d996990ebb391c49750d01a63e72afaecc7db9 Mon Sep 17 00:00:00 2001 From: Ariya Hidayat <ariya@metabase.com> Date: Mon, 9 Jan 2023 16:25:33 -0800 Subject: [PATCH] Triggers docs update upon a release (#27028) --- .github/workflows/release.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3bf3c838253..d962a6a3184 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,6 +7,23 @@ on: jobs: + trigger-docs-update: + runs-on: ubuntu-20.04 + timeout-minutes: 10 + steps: + - uses: actions/github-script@v6 + with: + github-token: ${{ secrets.DOCS_UPDATE_TOKEN }} + script: | + github.rest.repos.createDispatchEvent({ + owner: '${{ github.repository_owner }}', + repo: '${{ secrets.DOCS_REPO }}', + event_type: 'trigger-docs-update', + client_payload: { + version: '${{ github.ref_name }}' + } + }); + download-uberjar: runs-on: ubuntu-20.04 timeout-minutes: 10 -- GitLab