BRE-87 ADD: Slack notification enable feature and check in version-bump workflow (#9385)
This commit is contained in:
parent
93c59db6fc
commit
81c1456f6b
|
@ -28,6 +28,10 @@ on:
|
||||||
description: "Cut RC branch?"
|
description: "Cut RC branch?"
|
||||||
default: true
|
default: true
|
||||||
type: boolean
|
type: boolean
|
||||||
|
enable_slack_notification:
|
||||||
|
description: "Enable Slack notifications for upcoming release?"
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
bump_version:
|
bump_version:
|
||||||
|
@ -45,6 +49,14 @@ jobs:
|
||||||
with:
|
with:
|
||||||
version: ${{ inputs.version_number_override }}
|
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
|
- name: Checkout Branch
|
||||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
||||||
with:
|
with:
|
||||||
|
@ -476,7 +488,7 @@ jobs:
|
||||||
run: gh pr merge $PR_NUMBER --squash --auto --delete-branch
|
run: gh pr merge $PR_NUMBER --squash --auto --delete-branch
|
||||||
|
|
||||||
- name: Report upcoming browser release version to Slack
|
- name: Report upcoming browser release version to Slack
|
||||||
if: ${{ steps.version-changed.outputs.changes_to_commit == 'TRUE' && steps.set-final-version-output.outputs.version_browser != '' }}
|
if: ${{ steps.version-changed.outputs.changes_to_commit == 'TRUE' && steps.set-final-version-output.outputs.version_browser != '' && inputs.enable_slack_notification == true }}
|
||||||
uses: bitwarden/gh-actions/report-upcoming-release-version@main
|
uses: bitwarden/gh-actions/report-upcoming-release-version@main
|
||||||
with:
|
with:
|
||||||
version: ${{ steps.set-final-version-output.outputs.version_browser }}
|
version: ${{ steps.set-final-version-output.outputs.version_browser }}
|
||||||
|
@ -484,7 +496,7 @@ jobs:
|
||||||
AZURE_KV_CI_SERVICE_PRINCIPAL: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}
|
AZURE_KV_CI_SERVICE_PRINCIPAL: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}
|
||||||
|
|
||||||
- name: Report upcoming cli release version to Slack
|
- name: Report upcoming cli release version to Slack
|
||||||
if: ${{ steps.version-changed.outputs.changes_to_commit == 'TRUE' && steps.set-final-version-output.outputs.version_cli != '' }}
|
if: ${{ steps.version-changed.outputs.changes_to_commit == 'TRUE' && steps.set-final-version-output.outputs.version_cli != '' && inputs.enable_slack_notification == true }}
|
||||||
uses: bitwarden/gh-actions/report-upcoming-release-version@main
|
uses: bitwarden/gh-actions/report-upcoming-release-version@main
|
||||||
with:
|
with:
|
||||||
version: ${{ steps.set-final-version-output.outputs.version_cli }}
|
version: ${{ steps.set-final-version-output.outputs.version_cli }}
|
||||||
|
@ -492,7 +504,7 @@ jobs:
|
||||||
AZURE_KV_CI_SERVICE_PRINCIPAL: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}
|
AZURE_KV_CI_SERVICE_PRINCIPAL: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}
|
||||||
|
|
||||||
- name: Report upcoming desktop release version to Slack
|
- name: Report upcoming desktop release version to Slack
|
||||||
if: ${{ steps.version-changed.outputs.changes_to_commit == 'TRUE' && steps.set-final-version-output.outputs.version_desktop != '' }}
|
if: ${{ steps.version-changed.outputs.changes_to_commit == 'TRUE' && steps.set-final-version-output.outputs.version_desktop != '' && inputs.enable_slack_notification == true }}
|
||||||
uses: bitwarden/gh-actions/report-upcoming-release-version@main
|
uses: bitwarden/gh-actions/report-upcoming-release-version@main
|
||||||
with:
|
with:
|
||||||
version: ${{ steps.set-final-version-output.outputs.version_desktop }}
|
version: ${{ steps.set-final-version-output.outputs.version_desktop }}
|
||||||
|
@ -500,7 +512,7 @@ jobs:
|
||||||
AZURE_KV_CI_SERVICE_PRINCIPAL: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}
|
AZURE_KV_CI_SERVICE_PRINCIPAL: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}
|
||||||
|
|
||||||
- name: Report upcoming web release version to Slack
|
- name: Report upcoming web release version to Slack
|
||||||
if: ${{ steps.version-changed.outputs.changes_to_commit == 'TRUE' && steps.set-final-version-output.outputs.version_web != '' }}
|
if: ${{ steps.version-changed.outputs.changes_to_commit == 'TRUE' && steps.set-final-version-output.outputs.version_web != '' && inputs.enable_slack_notification == true }}
|
||||||
uses: bitwarden/gh-actions/report-upcoming-release-version@main
|
uses: bitwarden/gh-actions/report-upcoming-release-version@main
|
||||||
with:
|
with:
|
||||||
version: ${{ steps.set-final-version-output.outputs.version_web }}
|
version: ${{ steps.set-final-version-output.outputs.version_web }}
|
||||||
|
|
Loading…
Reference in New Issue