From 2d97d47b1711f4822237eb6e65c09f01e1f9bbce Mon Sep 17 00:00:00 2001 From: Robert Dailey Date: Sun, 20 Aug 2023 14:14:07 -0500 Subject: [PATCH] ci: Update 'branches' setting in a few workflows The goal is to ensure that tags are consistently excluded from triggering these workflows. --- .github/workflows/inspect-code.yml | 2 +- .github/workflows/markdown-lint.yml | 2 ++ .github/workflows/sonarcloud.yml | 6 ++---- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/inspect-code.yml b/.github/workflows/inspect-code.yml index 31be3c2a..7521e742 100644 --- a/.github/workflows/inspect-code.yml +++ b/.github/workflows/inspect-code.yml @@ -3,8 +3,8 @@ name: Inspect Code on: push: + # Explicitly specifying this results in tags being ignored, which is the goal. branches: ["**"] - tags: ["!**"] paths: - .github/workflows/inspect-code.yml - '**.cs' diff --git a/.github/workflows/markdown-lint.yml b/.github/workflows/markdown-lint.yml index 8db47f0c..743d21ed 100644 --- a/.github/workflows/markdown-lint.yml +++ b/.github/workflows/markdown-lint.yml @@ -3,6 +3,8 @@ name: Markdown Lint on: push: + # Explicitly specifying this results in tags being ignored, which is the goal. + branches: ["**"] paths: - "**.md" - .github/workflows/markdown-lint.yml diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index b1d16ad8..5ed2759e 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -5,15 +5,13 @@ on: # Do not run on pull-request because the required tokens # cannot be read from there. push: + # Explicitly specifying this results in tags being ignored, which is the goal. + branches: ["**"] paths: - .github/workflows/sonarcloud.yml - sonar-project.properties - "src/**" - # Explicitly specifying this results in tags being ignored, which is the goal. - branches: - - "**" - env: dotnetVersion: "7.0.x"