Skip to content

Commit

Permalink
update release action to check suffix is not provided for a release o…
Browse files Browse the repository at this point in the history
…r patch (#536)
  • Loading branch information
dev-mlb authored Aug 17, 2023
1 parent e18c907 commit 4bae59a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/maven-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ jobs:
run: |
echo "Milestone release is missing a release suffix, i.e. -M1"
exit 1
- name: Check suffix is not specified for a release or patch
if: ${{ github.event.inputs.release_type != 'milestone' && github.event.inputs.release_suffix != '' }}
run: |
echo "Suffix should only be specified for milestone releases"
exit 1
- name: Check patch release type is using correct branch
if: ${{ github.event.inputs.release_type == 'patch' && !startsWith(github.ref_name, 'patch/') }}
run: |
Expand Down

0 comments on commit 4bae59a

Please sign in to comment.