Skip to content

feat(core): 🎸 Added WrapRender to combines render widget with its c… #111

feat(core): 🎸 Added WrapRender to combines render widget with its c…

feat(core): 🎸 Added WrapRender to combines render widget with its c… #111

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}`);
}
});