Skip to content

Commit

Permalink
Only run docs workflow on main branch (woodpecker-ci#2105)
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed Aug 3, 2023
1 parent 375f60b commit 77dd68a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .woodpecker/docs.yml
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
3 changes: 3 additions & 0 deletions .woodpecker/securityscan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77dd68a

Please sign in to comment.