Skip to content

Commit f94f138

Browse files
authored
ci: Fix version validation for integration branch releases
1 parent d0289ea commit f94f138

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/deployment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ jobs:
8585
# If we're releasing from integration it must be a pre-release
8686
# This is currently not a requirement
8787
# python -c $'from packaging.version import Version; v = Version('"'$NEW_VERSION'"$')\nif not v.is_prerelease:\n raise ValueError("integration should only be used for pre-releases")'
88+
echo
8889
elif [[ "${{ github.event.ref }}" != "$(python -c $'from packaging.version import Version; v = Version('"'$NEW_VERSION'"$')\nprint(f"refs/heads/rel-v{v.major}r{v.minor}")')" ]]; then
8990
# If we're not releasing from integration the version should match the rel-vXrY branch name
9091
echo "$NEW_VERSION is an invalid version for ${{ github.event.ref }}"

0 commit comments

Comments
 (0)