From 847c2dc3ece0896862ec196636c5acbd89b585c2 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 14 Apr 2024 11:15:39 +0200 Subject: Update GitHub Workflow triggers --- .github/workflows/cs.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to '.github/workflows/cs.yml') 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: -- cgit v1.2.3