From d003a5db4e0af825a6fdebf36ef2cfdeff2fef82 Mon Sep 17 00:00:00 2001 From: Kevin Knight <57677197+kevin-m-knight-gs@users.noreply.github.com> Date: Mon, 11 Dec 2023 10:10:57 -0500 Subject: [PATCH] Skip workflow jobs for release commits (#117) --- .github/workflows/cve-scanning.yml | 2 ++ .github/workflows/license-scanning.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/cve-scanning.yml b/.github/workflows/cve-scanning.yml index 30f401c3..e7acf297 100644 --- a/.github/workflows/cve-scanning.yml +++ b/.github/workflows/cve-scanning.yml @@ -17,6 +17,8 @@ on: jobs: depcheck: + # Skip this job for release commits + if: "!contains(github.event.head_commit.message, '[maven-release-plugin]')" runs-on: ubuntu-latest steps: - name: Checkout repo diff --git a/.github/workflows/license-scanning.yml b/.github/workflows/license-scanning.yml index 05b0bdc5..d120be3a 100644 --- a/.github/workflows/license-scanning.yml +++ b/.github/workflows/license-scanning.yml @@ -19,6 +19,8 @@ env: jobs: scan: + # Skip this job for release commits + if: "!contains(github.event.head_commit.message, '[maven-release-plugin]')" runs-on: ubuntu-latest steps: - name: Checkout repo