mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-19 01:51:27 +01:00
Merge pull request #2239 from bitwarden/ci/patch-version-check
Added redeployment logic to setup job
This commit is contained in:
commit
ac43637203
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
@ -3,7 +3,15 @@ name: Release
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs: {}
|
inputs:
|
||||||
|
release_type:
|
||||||
|
description: 'Release Options'
|
||||||
|
required: true
|
||||||
|
default: 'Initial Release'
|
||||||
|
type: choice
|
||||||
|
options:
|
||||||
|
- Initial Release
|
||||||
|
- Redeploy
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -34,7 +42,8 @@ jobs:
|
|||||||
curl -sL https://api.github.com/repos/$GITHUB_REPOSITORY/releases/latest | jq -r ".tag_name"
|
curl -sL https://api.github.com/repos/$GITHUB_REPOSITORY/releases/latest | jq -r ".tag_name"
|
||||||
)
|
)
|
||||||
|
|
||||||
if [ "v$version" == "$previous_release_tag_version" ]; then
|
if [ "v$version" == "$previous_release_tag_version" ] && \
|
||||||
|
[ "${{ github.event.inputs.release_type }}" == "Initial Release" ]; then
|
||||||
echo "[!] Already released v$version. Please bump version to continue"
|
echo "[!] Already released v$version. Please bump version to continue"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user