Only run docs workflow on main branch (#2105)

This commit is contained in:
6543
2023-08-03 23:46:55 +02:00
committed by GitHub
parent 432fbfc57e
commit bc049aa22a
2 changed files with 5 additions and 5 deletions

View File

@@ -1,9 +1,6 @@
when: when:
- event: pull_request event: [pull_request, push, cron]
- event: push branch: ${CI_REPO_DEFAULT_BRANCH}
branch:
- ${CI_REPO_DEFAULT_BRANCH}
- release/*
variables: variables:

View File

@@ -22,6 +22,9 @@ steps:
settings: settings:
skip-dirs: node_modules/,plugins/woodpecker-plugins/node_modules/ skip-dirs: node_modules/,plugins/woodpecker-plugins/node_modules/
dir: docs/ dir: docs/
when:
event: [pull_request, push, cron]
branch: ${CI_REPO_DEFAULT_BRANCH}
check web: check web:
group: check group: check