Skip to content

Commit

Permalink
[BRE-544] Add skip version bump type (#46)
Browse files Browse the repository at this point in the history
* Update enforce-labels workflow to allow 'version:skip' label

* Skip version bump for 'skip' bump type
  • Loading branch information
michalchecinski authored Jan 9, 2025
1 parent 543351e commit 76bc912
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:

version-bump:
name: Version bump
if: needs.version-type.outputs.version_bump_type != 'skip'
runs-on: ubuntu-24.04
needs: version-type
outputs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/enforce-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
uses: bitwarden/gh-actions/.github/workflows/_enforce-labels.yml@main

enforce-version-label:
if: "!(contains(github.event.pull_request.labels.*.name, 'version:major') || contains(github.event.pull_request.labels.*.name, 'version:minor') || contains(github.event.pull_request.labels.*.name, 'version:patch'))"
if: "!(contains(github.event.pull_request.labels.*.name, 'version:major') || contains(github.event.pull_request.labels.*.name, 'version:minor') || contains(github.event.pull_request.labels.*.name, 'version:patch')) || contains(github.event.pull_request.labels.*.name, 'version:skip')"
name: Enforce version label
runs-on: ubuntu-22.04

Expand Down

0 comments on commit 76bc912

Please sign in to comment.