mirror of
https://github.com/bitwarden/browser.git
synced 2024-09-18 02:41:15 +02:00
Patch version check to allow for redeployments. (#1204)
* Added logic for redployment
* Applied linting
- Prettier config was already updated by Oscar. b4df834b16
This commit is contained in:
parent
f7ae94199f
commit
3c2094bb04
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@ -3,6 +3,15 @@ name: Release
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
release_type:
|
||||||
|
description: 'Release Options'
|
||||||
|
required: true
|
||||||
|
default: 'Initial Release'
|
||||||
|
type: choice
|
||||||
|
options:
|
||||||
|
- Initial Release
|
||||||
|
- Redeploy
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
setup:
|
setup:
|
||||||
@ -39,7 +48,8 @@ jobs:
|
|||||||
echo "Latest version: $latest_ver"
|
echo "Latest version: $latest_ver"
|
||||||
ver=${{ steps.retrieve-version.outputs.package_version }}
|
ver=${{ steps.retrieve-version.outputs.package_version }}
|
||||||
echo "Version: $ver"
|
echo "Version: $ver"
|
||||||
if [ "$latest_ver" = "$ver" ]; then
|
if [ "$latest_ver" = "$ver" ] && \
|
||||||
|
[ "${{ github.event.inputs.release_type }}" == "Initial Release" ]; then
|
||||||
echo "Version has not been bumped!"
|
echo "Version has not been bumped!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user