Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ on:
description: 'target-tag: tag or branch name to release. Use to re-release tagged releases'
default: scylla-3.x

matrix-branch:
type: string
description: 'matrix-branch: scylla-java-driver-matrix branch to use for patch validation'
default: master

jobs:
release:
name: Release
Expand Down Expand Up @@ -62,6 +67,29 @@ jobs:
run: |
make release-prepare

- name: Validate matrix patches
run: |
RELEASE_TAG=$(grep '^scm.tag=' release.properties | cut -d= -f2)
echo "Release tag: ${RELEASE_TAG}"

if [[ -z "${RELEASE_TAG}" ]]; then
echo "::error::Could not determine release tag from release.properties"
exit 1
fi

git clone --depth 1 --branch "${{ inputs.matrix-branch }}" \
https://github.com/scylladb/scylla-java-driver-matrix.git /tmp/matrix

pip install --quiet PyYAML packaging jinja2

echo "=== Validating scylla driver patches for ${RELEASE_TAG} ==="
python3 /tmp/matrix/main.py . \
--versions "${RELEASE_TAG}" \
--driver-type scylla \
--patch-only

echo "Matrix patches apply cleanly to ${RELEASE_TAG}"

- name: Perform release
if: inputs.dry-run == false
env:
Expand Down
Loading