Skip to content

Commit 8bdbe0b

Browse files
committed
update release gha
1 parent a854779 commit 8bdbe0b

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/release_central.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
prev_version:
1313
description: "The previous version, used in the release git diff."
1414
required: true
15+
next_version:
16+
description: "The next version, used to update the tags."
17+
required: true
1518
dry_run:
1619
description: Used to test other workflow steps, does not publish to Maven Central.
1720
type: boolean
@@ -28,6 +31,7 @@ env:
2831
BRANCH: ${{ inputs.branch }}
2932
VERSION: ${{ inputs.version }}
3033
PREV_VERSION: ${{ inputs.prev_version }}
34+
NEXT_VERSION: ${{ inputs.next_version }}
3135
DRY_RUN: ${{ inputs.dry_run }}
3236
GIT_USER: 'Laura Trotta'
3337
GIT_MAIL: laura.trotta@elastic.co
@@ -92,8 +96,8 @@ jobs:
9296
git config user.email "$GIT_MAIL"
9397
git tag v${{ inputs.version }}
9498
git push origin tag v${{ inputs.version }}
95-
echo ${{ inputs.version }} > config/version.txt
96-
sed -i '/static final String VERSION/s/".*"/"${{ inputs.version }}"/' java-client/src/main-flavored/java/co/elastic/clients/transport/VersionInfo.java
99+
echo ${{ inputs.next_version }} > config/version.txt
100+
sed -i '/static final String VERSION/s/".*"/"${{ inputs.next_version }}"/' java-client/src/main-flavored/java/co/elastic/clients/transport/VersionInfo.java
97101
git commit -m "bump version" -a
98102
git push origin ${{ inputs.branch }}
99103

0 commit comments

Comments
 (0)