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:
Micaiah Martin 2021-12-20 10:49:16 -07:00 committed by GitHub
parent f7ae94199f
commit 3c2094bb04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 6 deletions

View File

@ -3,6 +3,15 @@ name: Release
on:
workflow_dispatch:
inputs:
release_type:
description: 'Release Options'
required: true
default: 'Initial Release'
type: choice
options:
- Initial Release
- Redeploy
jobs:
setup:
@ -39,7 +48,8 @@ jobs:
echo "Latest version: $latest_ver"
ver=${{ steps.retrieve-version.outputs.package_version }}
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!"
exit 1
fi