From 5b840950c86c719f21049cf7e1456f0bad7b9e4f Mon Sep 17 00:00:00 2001 From: pigwin Date: Tue, 23 Dec 2025 22:51:20 +0100 Subject: [PATCH] v1.0.2 come on plz work for ducks sake --- .github/workflows/docker-image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 8a2cd12..ab83911 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -30,7 +30,7 @@ jobs: - name: Get commit version id: commit-version run: | - COMMIT_MSG=$(git log -1 --pretty=%B) + COMMIT_MSG=$(git log -1 --pretty=%B | head -n1 | xargs) echo "Commit message: $COMMIT_MSG" # Debugging output # Updated regex to handle both vX.Y, vX.Y.Z, and vX.Y-pre-release formats if [[ "$COMMIT_MSG" =~ ^v[0-9]+\.[0-9]+(\.[0-9]+)?(-[a-zA-Z0-9._-]+)?$ ]]; then @@ -55,4 +55,4 @@ jobs: if [[ "${{ env.VERSION }}" != "dev" ]]; then docker tag ti1:${{ env.VERSION }} ${{ secrets.DOCKER_USERNAME }}/ti1:${{ env.VERSION }} docker push ${{ secrets.DOCKER_USERNAME }}/ti1:${{ env.VERSION }} - fi \ No newline at end of file + fi