Skip to content

Commit 9c6cd64

Browse files
authored
use initial tag if not deployed to an environment yet (#35)
## Summary - Routine Change ### Details - use an initial tag if its not been deployed to an environment yet
1 parent 1a0dfc6 commit 9c6cd64

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/scripts/get_target_deployed_tag.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,10 @@
22

33
current_deployed_tag=$(aws cloudformation describe-stacks --stack-name fhir-validator --query "Stacks[0].Tags[?Key=='version'].Value" --output text)
44

5+
6+
if [ -z "$current_deployed_tag" ]
7+
then
8+
current_deployed_tag=v1.0.30-alpha
9+
fi
10+
511
echo "CURRENT_DEPLOYED_TAG=${current_deployed_tag}" >> "$GITHUB_ENV"

0 commit comments

Comments
 (0)