Update build-docs-on-tag.yml #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update website docs given new release tag | |
on: | |
push: | |
branches: | |
- build_docs | |
tags: | |
- "v*" | |
jobs: | |
trigger-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Send repository dispatch event | |
uses: actions/github-script@v8 | |
with: | |
github-token: ${{ secrets.SHINY_DEV_CENTER_GITHUB_TOKEN }} | |
script: | | |
const result = await github.rest.repos.createDispatchEvent({ | |
owner: 'rstudio', | |
repo: 'shiny-dev-center', | |
event_type: 'build-r-reference', | |
client_payload: {} | |
}); | |
console.log('Repository dispatch sent successfully'); |