ci: auto trigger jan docs ci for new release (#3734)
Co-authored-by: Hien To <tominhhien97@gmail.com>
This commit is contained in:
parent
143f2f5c58
commit
cf0a232001
25
.github/workflows/auto-trigger-jan-docs.yaml
vendored
Normal file
25
.github/workflows/auto-trigger-jan-docs.yaml
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
name: Trigger Docs Workflow
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types:
|
||||||
|
- published
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- ci/auto-trigger-jan-docs-for-new-release
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
trigger_docs_workflow:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Trigger external workflow using GitHub API
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.PAT_SERVICE_ACCOUNT }}
|
||||||
|
run: |
|
||||||
|
curl -X POST \
|
||||||
|
-H "Accept: application/vnd.github.v3+json" \
|
||||||
|
-H "Authorization: token $GITHUB_TOKEN" \
|
||||||
|
https://api.github.com/repos/janhq/docs/actions/workflows/jan-docs.yml/dispatches \
|
||||||
|
-d '{"ref":"main"}'
|
||||||
Loading…
x
Reference in New Issue
Block a user