From 5498e1b78c160e51e7aa97f6f6fa56f3ec661080 Mon Sep 17 00:00:00 2001 From: Jason Schorr Date: Mon, 11 Apr 2022 16:04:47 -0400 Subject: [PATCH] Add workflow to trigger docs site rebuild (#360) * add workflow * Update labels * syntax fix * need ending quote * Update dispatch_to_docs.yml * Update .github/workflows/dispatch_to_docs.yml Co-authored-by: Ryan S <6175424+ray-kast@users.noreply.github.com> * Update .github/workflows/dispatch_to_docs.yml Co-authored-by: Ryan S <6175424+ray-kast@users.noreply.github.com> Co-authored-by: Ryan S <6175424+ray-kast@users.noreply.github.com> --- .github/workflows/dispatch_to_docs.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/dispatch_to_docs.yml diff --git a/.github/workflows/dispatch_to_docs.yml b/.github/workflows/dispatch_to_docs.yml new file mode 100644 index 000000000..766fac860 --- /dev/null +++ b/.github/workflows/dispatch_to_docs.yml @@ -0,0 +1,17 @@ +name: Send event to rebuild docs + +on: + push: + branches: [dev, master] + +jobs: + dispatch: + runs-on: ubuntu-latest + steps: + - name: Dispatch event to docs repo + uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.DOCS_REPO_ACCESS_TOKEN }} + repository: holaplex/marketplace-api-docs + event-type: api_update + client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'