chore: Release release-test version 0.4.0-alpha.1 #65
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: "Release push dispatch" | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
- release-* | |
jobs: | |
dispatch: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/github-script@v7 | |
with: | |
github-token: ${{ secrets.RIBIR_RELEASE }} | |
script: |- | |
await github.rest.actions.createWorkflowDispatch({ | |
owner: 'M-Adoo', | |
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}`); | |
} | |
}); | |