using fetch-depth 0 as specified in https://github.com/actions/checkout/issues/1781 #25

Merged
hitanshu merged 1 commits from hitanshu/CFTunnels:tags into test 2025-06-04 21:01:49 +00:00

View File

@ -11,6 +11,8 @@ jobs:
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: JDK setup
uses: actions/setup-java@v4
with:
@ -26,7 +28,6 @@ jobs:
run: echo "COMMIT_MESSAGE=$(git log -1 --pretty=%B)"
- name: Create and push tag
run: |
git fetch --tags
git tag -a ${NEW_VERSION} -m "${COMMIT_MESSAGE}"
git push origin ${NEW_VERSION}
- name: Log in to Gitea Docker Registry