Skip to content

Commit

Permalink
Allow for hotfixes to use release action
Browse files Browse the repository at this point in the history
- Skip bumping snapshots on hotfixes
- Always announce releases regardless of whether it's a hotfix

[#185743330]

Co-authored-by: Chibuisi Enyia <cenyia@codeforamerica.org>
  • Loading branch information
bencalegari and enyia21 committed Aug 1, 2023
1 parent 3880385 commit 946bb10
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
description: 'Version to release'
type: string
required: true
hotfix:
description: 'Is this a hotfix release?'
type: boolean
required: true
default: false
sonatypeUsername:
description: 'Sonatype username'
type: string
Expand Down Expand Up @@ -97,6 +102,7 @@ jobs:
name: Clean up after release
needs: release
runs-on: ubuntu-latest
if: ${{ inputs.hotfix == false }}
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -122,6 +128,12 @@ jobs:
event-type: form-flow-snapshot-version-bumped
client-payload: '{"version": "${{env.NEW_SNAPSHOT_VERSION}}"}'
token: ${{ secrets.STARTER_APP_GITHUB_PAT }}
release_announcement:
name: Announce release
if: ${{ always() }}
needs: post_release_success
runs-on: ubuntu-latest
steps:
- name: "Announce successful release of ${{inputs.version}} to #platform-help"
uses: ravsamhq/notify-slack-action@v2
with:
Expand Down

0 comments on commit 946bb10

Please sign in to comment.