Skip to content

Update build-docs-on-tag.yml #3

Update build-docs-on-tag.yml

Update build-docs-on-tag.yml #3

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');