diff --git a/.gitea/workflows/master.yaml b/.gitea/workflows/master.yaml index cfce70f..eadfdac 100644 --- a/.gitea/workflows/master.yaml +++ b/.gitea/workflows/master.yaml @@ -16,6 +16,6 @@ jobs: fetch-depth: 0 - name: Get Commit Tag id: commit - run: echo "tag=$(git describe --contains ${{ env.COMMIT_SHA }})" >> $GITEA_OUTPUT + run: echo "tag=$(git for-each-ref --sort=-creatordate --format='%(refname:strip=2)' refs/tags --contains ${{ env.COMMIT_SHA }} | head -n 1)" >> $GITEA_OUTPUT - name: Show Tag run: echo "${{ steps.commit.outputs.tag }}"