Skip to content

Commit

Permalink
Update release branch cut to still update container and snapshot vers…
Browse files Browse the repository at this point in the history
…ions to 2.XX.0 (#33872)

* Update release branch cut to still update container version to 2.XX.0

* Update a few more spots
  • Loading branch information
damccorm authored Feb 5, 2025
1 parent 4f3df49 commit 08a148b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cut_release_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
echo "==============================================================="
- name: Update release version for dataflow runner
run: |
sed -i -e "s/'beam-master-.*'/'${RELEASE}'/g" \
sed -i -e "s/'beam-master-.*'/'${RELEASE}.0'/g" \
runners/google-cloud-dataflow-java/build.gradle
echo "===============Update release branch as following=============="
git diff
Expand Down
5 changes: 5 additions & 0 deletions release/src/main/scripts/set_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ if [[ -z $TARGET_VERSION ]] ; then
exit 1
fi

if ! [[ ${RELEASE} =~ ([0-9]+\.[0-9]+\.[0-9]+) ]];
then echo "The input for RELEASE does not match a valid format [0-9]+\.[0-9]+\.[0-9]+"
exit 1
fi

if [[ -z "$IS_SNAPSHOT_VERSION" ]] ; then
# Fixing a release version
sed -i -e "s/version=.*/version=$TARGET_VERSION/" gradle.properties
Expand Down
2 changes: 1 addition & 1 deletion release/src/main/scripts/verify_release_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
set -e

BEAM_REPO_URL=https://github.com/apache/beam.git
RELEASE_BRANCH=release-${RELEASE_VER}
RELEASE_BRANCH="release-$(cut -d '.' -f 1,2 <<< $RELEASE)"
WORKING_BRANCH=postcommit_validation_pr
SCRIPT=$(readlink -f $0)
SCRIPT_DIR=$(dirname $SCRIPT)
Expand Down

0 comments on commit 08a148b

Please sign in to comment.