Add action to trigger API docs deploy.

This commit is contained in:
Sergio Benitez 2024-03-01 20:42:59 -08:00
parent 3fefbb24f8
commit 546c7c7684
1 changed files with 17 additions and 0 deletions

17
.github/workflows/trigger.yaml vendored Normal file
View File

@ -0,0 +1,17 @@
name: Trigger
on: [push]
jobs:
trigger:
name: api.rocket.rs
runs-on: ubuntu-latest
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'
})