Skip to content

Commit

Permalink
Add workflow to trigger docs site rebuild (#360)
Browse files Browse the repository at this point in the history
* 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>
echohtp and ray-kast authored Apr 11, 2022
1 parent e0748f2 commit 5498e1b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/dispatch_to_docs.yml
Original file line number Diff line number Diff line change
@@ -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 }}"}'

0 comments on commit 5498e1b

Please sign in to comment.