Skip to content

Commit

Permalink
enh(ci): skip workflows when it is a bump branch
Browse files Browse the repository at this point in the history
  • Loading branch information
kduret committed Jan 3, 2025
1 parent 473220d commit 3fb85ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/get-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,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;
}
Expand Down

0 comments on commit 3fb85ab

Please sign in to comment.