Fix reusable_workflow_tag.yaml (#2513)

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2025-06-27 12:47:52 +03:00
committed by GitHub
parent 035466bd88
commit e4cf69c742

View File

@@ -31,7 +31,7 @@ jobs:
git config --local user.name "github-actions[bot]" git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com" git config --local user.email "github-actions[bot]@users.noreply.github.com"
if git rev-parse "${TAG_NAME}" >/dev/null 2>&1; then if git rev-parse ${TAG_NAME} >/dev/null 2>&1; then
if [ "${{ inputs.override_tag }}" == "true" ]; then if [ "${{ inputs.override_tag }}" == "true" ]; then
echo "Tag ${TAG_NAME} already exists, but override is set to true, so moving it ..." echo "Tag ${TAG_NAME} already exists, but override is set to true, so moving it ..."
git tag -d ${TAG_NAME} git tag -d ${TAG_NAME}
@@ -43,7 +43,7 @@ jobs:
git push origin ${TAG_NAME} git push origin ${TAG_NAME}
echo "Tag ${TAG_NAME} moved." echo "Tag ${TAG_NAME} moved."
else else
echo "Tag ${TAG_NAME} already exists, do nothing." echo "Tag ${TAG_NAME} already exists and no override, do nothing."
fi fi
else else
echo "Creating a tag ${TAG_NAME} ..." echo "Creating a tag ${TAG_NAME} ..."