diff --git a/.github/workflows/container-release.yml b/.github/workflows/container-release.yml index e78b4da9..25472092 100644 --- a/.github/workflows/container-release.yml +++ b/.github/workflows/container-release.yml @@ -34,9 +34,9 @@ jobs: run: | platform=${{ matrix.config.platform }} echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV - # Extract version part after last underscore + # Extract version part after last dash ver="${GITHUB_REF#refs/*/}" - ver="${ver##*_}" + ver="${ver##*-}" # Ensure it starts with 'v' if [[ "$ver" != v* ]]; then ver="v$ver" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 715dd22a..f49b4082 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,8 +37,8 @@ jobs: run: | vv="${GITHUB_REF_NAME}" vv="${vv//\//-}" - # Extract version part after the last underscore - vv="${vv##*_}" + # Extract version part after the last dash + vv="${vv##*-}" # Ensure it starts with 'v' if [[ "$vv" != v* ]]; then vv="v$vv"