From 64b731c307ed4fa34212a4a055f5ca19d00c85bc Mon Sep 17 00:00:00 2001 From: Craig Perkins Date: Mon, 25 Mar 2024 10:57:35 -0400 Subject: [PATCH] [2.x] Add README to version increment automation (#12894) Signed-off-by: Craig Perkins --- .github/workflows/version.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index 86f95c979b6ff..fd91bef553d1c 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -108,6 +108,7 @@ jobs: - name: Add bwc version to main branch run: | echo Adding bwc version $NEXT_VERSION after $CURRENT_VERSION + sed -i "s/$CURRENT_VERSION/$NEXT_VERSION/g" README.md sed -i "s/- \"$CURRENT_VERSION\"/\0\n - \"$NEXT_VERSION\"/g" .ci/bwcVersions echo Adding $NEXT_VERSION_UNDERSCORE after $CURRENT_VERSION_UNDERSCORE sed -i "s/public static final Version $CURRENT_VERSION_UNDERSCORE = new Version(\([[:digit:]]\+\)\(.*\));/\0\n public static final Version $NEXT_VERSION_UNDERSCORE = new Version($NEXT_VERSION_ID\2);/g" libs/core/src/main/java/org/opensearch/Version.java