Fetching tags explicitly

This commit is contained in:
hitanshu310 2025-06-05 02:19:59 +05:30 committed by Kruti Shah
parent baef77d389
commit 2a242df197

View File

@ -26,6 +26,7 @@ jobs:
run: echo "COMMIT_MESSAGE=$(git log -1 --pretty=%B)" run: echo "COMMIT_MESSAGE=$(git log -1 --pretty=%B)"
- name: Create and push tag - name: Create and push tag
run: | run: |
git fetch --tags
git tag -a ${NEW_VERSION} -m "${COMMIT_MESSAGE}" git tag -a ${NEW_VERSION} -m "${COMMIT_MESSAGE}"
git push origin ${NEW_VERSION} git push origin ${NEW_VERSION}
- name: Log in to Gitea Docker Registry - name: Log in to Gitea Docker Registry