Further modifications to the action part.

This commit is contained in:
2021-05-09 17:07:58 +01:00
parent 9ab0317b34
commit 10fec688be
2 changed files with 5 additions and 21 deletions
+5 -4
View File
@@ -7,7 +7,7 @@ if [[ -z "$INPUT_CONFIG_FILE" ]]; then
echo "Set the configuration file path."
exit 1
else
FLAGS+=" -c $INPUT_CONFIG_FILE"
FLAGS="${FLAGS} -c $INPUT_CONFIG_FILE"
fi
if [[ -z "$INPUT_REPOSITORY_URL" ]] && [[ -z "$INPUT_REPOSITORY_LOCAL" ]];
@@ -17,12 +17,13 @@ then
fi
if [[ ! -z "$INPUT_REPOSITORY_URL" ]]; then
FLAGS+=" -r $INPUT_REPOSITORY_URL"
FLAGS="${FLAGS} -r $INPUT_REPOSITORY_URL"
fi
if [[ ! -z "$INPUT_REPOSITORY_LOCAL" ]]; then
FLAGS+=" -l"
FLAGS="${FLAGS} -l"
fi
OUT_SEMVER_GEN=$(/go/src/app/semver-gen generate $FLAGS $*)
echo "::set-output name=semantic_version::$(echo $OUT_SEMVER_GEN | sed -e 's|SEMVER ||g')"
echo "::set-output name=semantic_version::$(echo $OUT_SEMVER_GEN | sed -e 's|SEMVER ||g')"
echo $OUT_SEMVER_GEN