From 2b2b20d1b75d07b996bdae9ad976fe70694135f0 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Fri, 1 May 2026 17:26:37 -0400 Subject: [PATCH] [deploy] Use the first 8 chars of the hash --- .gitea/workflows/build-deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build-deploy.yml b/.gitea/workflows/build-deploy.yml index dbb9f78..cc4dba5 100644 --- a/.gitea/workflows/build-deploy.yml +++ b/.gitea/workflows/build-deploy.yml @@ -93,12 +93,12 @@ jobs: - name: Write commit hash to build file run: | mkdir -p build_meta - echo "${{ gitea.sha }}" > build_meta/commit.txt + echo "${{ gitea.sha }}" | cut -c1-8 > build_meta/commit.txt - name: Build package with commit info run: | # Write commit to _commit.py before build - echo "commit = '${{ gitea.sha }}'" > vrobbler/_commit.py + echo "commit = '$(echo ${{ gitea.sha }} | cut -c1-8)'" > vrobbler/_commit.py poetry build # Restore original _commit.py git checkout vrobbler/_commit.py @@ -121,7 +121,7 @@ jobs: command_timeout: 2m script: | mkdir -p /var/lib/vrobbler - echo "${{ gitea.sha }}" > /var/lib/vrobbler/commit.txt + echo "${{ gitea.sha }}" | cut -c1-8 > /var/lib/vrobbler/commit.txt pip uninstall -y vrobbler pip install /var/lib/vrobbler/dist/*.whl vrobbler migrate