[deploy] Use the first 8 chars of the hash
All checks were successful
build & deploy / test (push) Successful in 1m53s
build & deploy / build-and-deploy (push) Successful in 29s

This commit is contained in:
2026-05-01 17:26:37 -04:00
parent 41a7255ed8
commit 2b2b20d1b7

View File

@ -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