mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 07:05:35 +03:00
BRE-87 ADD: Slack notification enable feature and check in version-bump workflow (#3264)
This commit is contained in:
parent
d458f17ad6
commit
f165135147
1 changed files with 13 additions and 1 deletions
14
.github/workflows/version-bump.yml
vendored
14
.github/workflows/version-bump.yml
vendored
|
@ -12,6 +12,10 @@ on:
|
|||
description: "Cut RC branch?"
|
||||
default: true
|
||||
type: boolean
|
||||
enable_slack_notification:
|
||||
description: "Enable Slack notifications for upcoming release?"
|
||||
default: false
|
||||
type: boolean
|
||||
|
||||
jobs:
|
||||
bump_version:
|
||||
|
@ -26,6 +30,14 @@ jobs:
|
|||
with:
|
||||
version: ${{ inputs.version_number_override }}
|
||||
|
||||
- name: Slack Notification Check
|
||||
run: |
|
||||
if [[ "${{ inputs.enable_slack_notification }}" == true ]]; then
|
||||
echo "Slack notifications enabled."
|
||||
else
|
||||
echo "Slack notifications disabled."
|
||||
fi
|
||||
|
||||
- name: Checkout Branch
|
||||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
||||
with:
|
||||
|
@ -258,7 +270,7 @@ jobs:
|
|||
run: gh pr merge $PR_NUMBER --squash --auto --delete-branch
|
||||
|
||||
- name: Report upcoming release version to Slack
|
||||
if: ${{ steps.version-changed.outputs.changes_to_commit == 'TRUE' }}
|
||||
if: ${{ steps.version-changed.outputs.changes_to_commit == 'TRUE' && inputs.enable_slack_notification == true }}
|
||||
uses: bitwarden/gh-actions/report-upcoming-release-version@main
|
||||
with:
|
||||
version: ${{ steps.set-final-version-output.outputs.version }}
|
||||
|
|
Loading…
Reference in a new issue