Skip to content

Commit

Permalink
ci: allow to [skip release] based on commit msg
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlj95 committed Nov 21, 2024
1 parent 665c741 commit 2a71abc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/reusable-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ env:

jobs:
semantic-release:
# Skip release based on commit message.
# Sometimes can be useful like shipping a deprecation with its migration schematics, but having each of those
# in a separate PR
# https://stackoverflow.com/a/59775665/3263250
if: "! contains(toJSON(github.event.commits.*.message), '[skip release]')"
name: Semantic Release
runs-on: ubuntu-latest
#👇 Bit more time here, as if many things to release, GitHub API may
Expand Down

0 comments on commit 2a71abc

Please sign in to comment.