[workflow] changed to doc build to be on schedule and release (#3825)

* [workflow] changed to doc build to be on schedule and release

* polish code
pull/3826/head
Frank Lee 2023-05-24 10:50:19 +08:00 committed by GitHub
parent 269150b6f4
commit 05b8a8de58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 8 deletions

View File

@ -1,18 +1,16 @@
name: Build Documentation After Merge
name: Build Documentation On Schedule & After Release
on:
workflow_dispatch:
push:
paths:
- "version.txt"
- "docs/**"
branches:
- "main"
schedule:
- cron: "0 12 * * *" # build doc every day at 8pm Singapore time (12pm UTC time)
release:
types: [published]
jobs:
build-doc:
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
steps:
- name: trigger workflow in ColossalAI-Documentation