TP-39914 | fix

This commit is contained in:
Aman Chaturvedi
2024-03-12 00:32:36 +05:30
parent a97fe98872
commit 2aba2ef9f1

View File

@@ -71,8 +71,7 @@ jobs:
id: check_tag
run: |
TAG_NAME="${{ needs.generate.outputs.package_version }}"
TAG_EXISTS=$(git tag -l "$TAG_NAME")
if [ "$TAG_EXISTS" ]; then
if git rev-parse "$TAG_NAME" >/dev/null 2>&1; then
echo "Tag $TAG_NAME already exists."
echo "::set-output name=tag_exists::true"
else
@@ -83,7 +82,7 @@ jobs:
if: steps.check_tag.outputs.tag_exists == 'false'
run: |
TAG_NAME="${{ needs.generate.outputs.package_version }}"
git config --local user.email "${{ github.actor }}@users.noreply.github.com"
git config --local user.email "${{ github.actor }}@navi.com"
git config --local user.name "${{ github.actor }}"
git tag $TAG_NAME
git push origin $TAG_NAME