From 41461aef3fda77b5189c2348e1ef83171fc0f1d6 Mon Sep 17 00:00:00 2001 From: Xoconoch Date: Tue, 3 Jun 2025 19:39:55 -0600 Subject: [PATCH] update the workflow --- .github/workflows/docker-build.yml | 4 +++- .gitignore | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 1ace2a2..676ce12 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -42,7 +42,9 @@ jobs: - name: Set version in config.html run: | - VERSION=$(echo "${{ steps.meta.outputs.version }}" | sed 's/^v//') + TAG_VERSION="${{ github.ref_name }}" + # Remove 'v' prefix if it exists + VERSION="${TAG_VERSION#v}" sed -i "s|Set on build|Version: $VERSION|g" static/html/config.html # Build and push Docker image with multiarch support diff --git a/.gitignore b/.gitignore index f8065d8..f72d69f 100755 --- a/.gitignore +++ b/.gitignore @@ -37,4 +37,5 @@ logs/spotizerr.log static/js data logs/ -.env \ No newline at end of file +.env +Test.py \ No newline at end of file