enhance(ci): add push trigger and conditional execution for build-docs workflow

This commit is contained in:
charlie
2025-12-10 15:11:06 +08:00
parent dc4c712089
commit ad109277bf

View File

@@ -2,10 +2,16 @@ name: Build and Sync Plugin Docs
on:
workflow_dispatch:
push:
branches:
- master
jobs:
build-and-sync-docs:
runs-on: ubuntu-latest
# Only run on manual trigger or when the commit message starts with "chore(libs): bump version"
if:
github.event_name == 'workflow_dispatch' || startsWith(github.event.head_commit.message, 'chore(libs): bump version')
steps:
- name: Checkout logseq repository