From cf31d636c272c83f647762df18fa2f0cec5b2729 Mon Sep 17 00:00:00 2001 From: yangdx Date: Fri, 5 Sep 2025 11:28:28 +0800 Subject: [PATCH] Add git tag fetching and debug output to Docker workflow --- .github/workflows/docker-publish.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index a7aca2df..85a4a964 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -16,7 +16,8 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: - fetch-depth: 0 # Fetch all history for tags + fetch-depth: 0 + fetch-tags: true - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -28,6 +29,17 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} + - name: Debug git info + run: | + echo "Git status:" + git status + echo "Available tags:" + git tag -l + echo "Latest tags:" + git tag -l --sort=-version:refname | head -5 + echo "Describe attempt:" + git describe --tags --abbrev=0 || echo "Describe failed" + - name: Get latest tag id: get_tag run: |