Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
c44fd0c8
Unverified
Commit
c44fd0c8
authored
Feb 13, 2023
by
Frank Lee
Committed by
GitHub
Feb 13, 2023
Browse files
[workflow] added trigger to build doc upon release (#2678)
parent
40c916b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
.github/workflows/doc_build_after_merge.yml
.github/workflows/doc_build_after_merge.yml
+28
-0
.github/workflows/doc_check_on_pr.yml
.github/workflows/doc_check_on_pr.yml
+0
-0
No files found.
.github/workflows/doc_build_after_merge.yml
0 → 100644
View file @
c44fd0c8
name
:
Build Documentation upon Release
on
:
workflow_dispatch
:
pull_request
:
paths
:
-
'
version.txt'
types
:
-
closed
jobs
:
build-doc
:
name
:
Trigger Documentation Build Workflow
if
:
( github.event_name == 'workflow_dispatch' || github.event.pull_request.merged ==
true
) && github.repository == 'hpcaitech/ColossalAI'
runs-on
:
ubuntu-latest
steps
:
-
name
:
trigger workflow in ColossalAI-Documentation
run
:
|
gh
curl \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${GH_TOKEN}"\
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/hpcaitech/ColossalAI-Documentation/actions/workflows/deploy.yml/dispatches \
-d '{"ref":"main"}'
env
:
GH_TOKEN
:
${{secrets.DOC_REPO_TOKEN}}
.github/workflows/check_
doc_
on_pr.yml
→
.github/workflows/
doc_
check_on_pr.yml
View file @
c44fd0c8
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment