summaryrefslogtreecommitdiffstats
path: root/.github/workflows/cs.yml
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2024-04-14 11:15:39 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2024-04-14 11:22:13 +0200
commit847c2dc3ece0896862ec196636c5acbd89b585c2 (patch)
treefe5bf25b3a2f6631edc523d63d3977c4cf6579dd /.github/workflows/cs.yml
parent32b38b44126ce1b8e0d1581f485e887fa9151768 (diff)
downloadgohugo-theme-ed-847c2dc3ece0896862ec196636c5acbd89b585c2.tar.gz
Update GitHub Workflow triggers
Diffstat (limited to '.github/workflows/cs.yml')
-rw-r--r--.github/workflows/cs.yml15
1 files changed, 7 insertions, 8 deletions
diff --git a/.github/workflows/cs.yml b/.github/workflows/cs.yml
index a59baca..81861e7 100644
--- a/.github/workflows/cs.yml
+++ b/.github/workflows/cs.yml
@@ -2,15 +2,14 @@ name: Code Style
on:
push:
- branches:
- - main
- - 'feature/**'
- - 'release/**'
- - 'fix/**'
- # The branches below must be a subset of the branches above
+ branches-ignore:
+ # These should always correspond to pull requests, so ignore them for
+ # the push trigger and let them be triggered by the pull_request
+ # trigger, avoiding running the workflow twice. This is a minor
+ # optimization so there's no need to ensure this is comprehensive.
+ - 'dependabot/**'
pull_request:
- branches:
- - main
+ types: [opened, synchronize, reopened]
jobs:
lint: