mirror of
https://github.com/bitwarden/server.git
synced 2024-11-28 13:15:12 +01:00
BRE-87 Add enable feature for upcoming release version Slack notifications (#4122)
* BRE-87 ADD: enable_slack_notification input to version-bump workflow * BRE-87 TEST: Update version-bump workflow to use bitwarden/gh-actions/report-upcoming-release-version@task/BRE-87 * BRE-87 TEST: disable merge * BRE-87 DEBUG: enable_slack_notification input to version-bump workflow * BRE-87 TEST: Disable version PR creation and approval * BRE-87 FIX: conditional statement in version-bump workflow * Revert "BRE-87 TEST: Disable version PR creation and approval" This reverts commit59025ab5f6
. * Revert "BRE-87 TEST: disable merge" This reverts commit040bdb17bf
. * Revert "BRE-87 TEST: Update version-bump workflow to use bitwarden/gh-actions/report-upcoming-release-version@task/BRE-87" This reverts commit9e61d114c8
.
This commit is contained in:
parent
98a191a5e8
commit
999245a28f
14
.github/workflows/version-bump.yml
vendored
14
.github/workflows/version-bump.yml
vendored
@ -12,6 +12,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:
|
||||||
@ -26,6 +30,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: Check out branch
|
- name: Check out branch
|
||||||
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
|
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
|
||||||
with:
|
with:
|
||||||
@ -199,7 +211,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 release version to Slack
|
- 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
|
uses: bitwarden/gh-actions/report-upcoming-release-version@main
|
||||||
with:
|
with:
|
||||||
version: ${{ steps.set-final-version-output.outputs.version }}
|
version: ${{ steps.set-final-version-output.outputs.version }}
|
||||||
|
Loading…
Reference in New Issue
Block a user