Rocket/.github/workflows/trigger.yaml

19 lines
489 B
YAML
Raw Normal View History

2024-03-02 04:42:59 +00:00
name: Trigger
on: [push]
jobs:
trigger:
name: api.rocket.rs
runs-on: ubuntu-latest
if: github.repository == 'rwf2/Rocket'
2024-03-02 04:42:59 +00:00
steps:
- uses: actions/github-script@v7
with:
github-token: ${{ secrets.API_DOCS_DEPLOY_TOKEN }}
script: |
github.rest.actions.createWorkflowDispatch({
owner: 'rwf2',
repo: 'api.rocket.rs',
workflow_id: 'deploy.yaml',
ref: 'master'
})