[deploy] Use the first 8 chars of the hash
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user