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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

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

View file

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