Only run docs workflow on main branch (#2105) (#2110)

Backport #2105
This commit is contained in:
6543 2023-08-04 07:51:10 +02:00 committed by GitHub
parent 375f60bbec
commit e6c1f7fb24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -1,8 +1,6 @@
when:
- event: pull_request
- event: push
branch: [ main, release/* ]
event: [pull_request, push, cron]
branch: ${CI_REPO_DEFAULT_BRANCH}
variables:
- &golang_image 'golang:1.20.2'

View file

@ -20,6 +20,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