summaryrefslogtreecommitdiffstats
path: root/.github
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
parent32b38b44126ce1b8e0d1581f485e887fa9151768 (diff)
downloadgohugo-theme-ed-847c2dc3ece0896862ec196636c5acbd89b585c2.tar.gz
Update GitHub Workflow triggers
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/codeql-analysis.yml1
-rw-r--r--.github/workflows/cs.yml15
-rw-r--r--.github/workflows/playwright.yml15
3 files changed, 14 insertions, 17 deletions
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml
index 93a77ef..655fbd9 100644
--- a/.github/workflows/codeql-analysis.yml
+++ b/.github/workflows/codeql-analysis.yml
@@ -4,7 +4,6 @@ on:
push:
branches:
- main
- # The branches below must be a subset of the branches above
pull_request:
branches:
- main
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:
diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml
index ba1d962..09430e1 100644
--- a/.github/workflows/playwright.yml
+++ b/.github/workflows/playwright.yml
@@ -2,15 +2,14 @@ name: Playwright
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:
test: