Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/dispatch-nextgen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Trigger docs-staging nextgen update

on:
push:
paths-ignore:
- ".github/**"
branches:
- feature/preview-top-navigation

jobs:
trigger:
runs-on: ubuntu-latest
permissions:
contents: read

steps:
- name: trigger docs-staging update-nextgen workflow
uses: actions/github-script@v7
with:
github-token: ${{ secrets.DOCS_STAGING }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'pingcap',
repo: 'docs-staging',
workflow_id: 'update-nextgen.yml',
ref: 'nextgen',
inputs: {
repo: 'pingcap/docs',
branch: 'feature/preview-top-navigation'
}
})
Loading