chore: Release #103
This file contains 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: "Call Website To Sync Docs" | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
- release-* | |
jobs: | |
dispatch: | |
# Prevent this job from running on forked repositories | |
if: github.repository == 'RibirX/Ribir' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/github-script@v7 | |
with: | |
github-token: ${{ secrets.RIBIR_RELEASE }} | |
script: |- | |
await github.rest.actions.createWorkflowDispatch({ | |
owner: 'RibirX', | |
repo: 'ribir-website', | |
workflow_id: 'sync-docs.yml', | |
ref: 'main', | |
inputs: { | |
branch_ref: "${{ github.ref }}" | |
}, | |
}).catch(error => error).then(response => { | |
core.debug(response); | |
if (response.status !== 204) { | |
core.setFailed(`create workflow_dispatch received status code ${response.status}`); | |
} | |
}); | |