Skip to content

Commit

Permalink
[Resolves #5] Remove version restriction (#6)
Browse files Browse the repository at this point in the history
We should not restrict allowable Sceptre or Troposphere versions.
  • Loading branch information
xschildw authored Apr 20, 2023
1 parent 39f5efd commit 27fb35e
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,9 @@ function parseInputs {
fi

# Optional inputs
sceptreVer='2.3.0'
sceptreVer='4.0.2'
if [[ "${INPUT_SCEPTRE_VERSION}" != "" ]]; then
if [[ "${INPUT_SCEPTRE_VERSION}" =~ ^2[.][0-9][.][0-9]$ ]]; then
sceptreVer=${INPUT_SCEPTRE_VERSION}
else
echo "Unsupported sceptre version"
exit 1
fi
else
echo "Input sceptre_version cannot be empty!"
exit 1
Expand All @@ -43,15 +38,9 @@ function parseInputs {
exit 1
fi

sceptreTroposphereVer='2.6.0'
sceptreTroposphereVer='4.3.2'
if [[ "${INPUT_SCEPTRE_TROPOSPHERE_VERSION}" != "" ]]; then
if [[ "${INPUT_SCEPTRE_TROPOSPHERE_VERSION}" =~ ^2[.][0-9][.][0-9]$ ]]; then
sceptreTroposphereVer=${INPUT_SCEPTRE_TROPOSPHERE_VERSION}
else
echo "Unsupported troposphere version, must be >2.0.0"
echo "Version entered: ${INPUT_SCEPTRE_TROPOSPHERE_VERSION}"
exit 1
fi
else
echo "Input sceptre_troposphere_version cannot be empty!"
exit 1
Expand Down

0 comments on commit 27fb35e

Please sign in to comment.