Update build.yml

This commit is contained in:
Max W. 2024-03-02 23:28:49 +01:00
parent 67cda113f4
commit 311157e0e6

View File

@ -14,9 +14,10 @@ jobs:
- name: Extract tag name - name: Extract tag name
run: | run: |
echo "GITEA_REF: $GITEA_REF" GIT_TAG=$(git describe --tags --always)
if [[ "$GITEA_REF" =~ ^refs/tags/v ]]; then echo "GIT_TAG: $GIT_TAG"
TAG_NAME=${GITEA_REF#refs/tags/v} if [[ "$GIT_TAG" == v* ]]; then
TAG_NAME=${GIT_TAG#v}
echo "Extracted tag name: $TAG_NAME" echo "Extracted tag name: $TAG_NAME"
else else
echo "This is not a tag push with 'v' prefix, skipping..." echo "This is not a tag push with 'v' prefix, skipping..."