diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index 8daf837..7dd5a74 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -22,7 +22,9 @@ jobs: run: | if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then # Manual trigger: read version from Cargo.toml - VERSION=$(grep '^version' Cargo.toml | head -1 | sed 's/.*"\(.*\)".*/\1/') + VERSION_LINE=$(grep '^version' Cargo.toml | head -1) + VERSION="${VERSION_LINE#*\"}" + VERSION="${VERSION%\"*}" TAG="v${VERSION}" # Check if tag already exists