From 9855747e719be56fbdc4ca981408967219ee6b2a Mon Sep 17 00:00:00 2001 From: Kevin Duret Date: Fri, 3 Jan 2025 13:46:35 +0100 Subject: [PATCH] enh(ci): skip workflows when it is a bump branch --- .github/workflows/get-environment.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/get-environment.yml b/.github/workflows/get-environment.yml index 048aac785ce..5d2a9f5e591 100644 --- a/.github/workflows/get-environment.yml +++ b/.github/workflows/get-environment.yml @@ -170,6 +170,11 @@ jobs: uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 with: script: | + if (/^bump-.+/.test('${{ github.head_ref || github.ref_name }}')) { + core.notice('skipping workflow because it is a bump branch'); + return true; + } + if (${{ steps.has_skip_label.outputs.result }} === false) { return false; }