mirror of https://github.com/hpcaitech/ColossalAI
[workflow] changed to doc build to be on schedule and release (#3825)
* [workflow] changed to doc build to be on schedule and release * polish codepull/3826/head
parent
269150b6f4
commit
05b8a8de58
|
@ -1,18 +1,16 @@
|
||||||
name: Build Documentation After Merge
|
name: Build Documentation On Schedule & After Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
schedule:
|
||||||
paths:
|
- cron: "0 12 * * *" # build doc every day at 8pm Singapore time (12pm UTC time)
|
||||||
- "version.txt"
|
release:
|
||||||
- "docs/**"
|
types: [published]
|
||||||
branches:
|
|
||||||
- "main"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-doc:
|
build-doc:
|
||||||
name: Trigger Documentation Build Workflow
|
name: Trigger Documentation Build Workflow
|
||||||
if: ( github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true ) && github.repository == 'hpcaitech/ColossalAI'
|
if: github.repository == 'hpcaitech/ColossalAI'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: trigger workflow in ColossalAI-Documentation
|
- name: trigger workflow in ColossalAI-Documentation
|
Loading…
Reference in New Issue