Skip to content

Commit b28a13f

Browse files
committed
Update presto-release-prepare.yml
Update presto-release-prepare.yml
1 parent e3098c5 commit b28a13f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/presto-release-prepare.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,21 +62,17 @@ jobs:
6262
git config pull.rebase false
6363
6464
- name: Set presto release version
65-
run: |
66-
unset MAVEN_CONFIG && ./mvnw versions:set -DremoveSnapshot -ntp
67-
68-
- name: Get presto release version
6965
id: get-version
7066
run: |
71-
PRESTO_RELEASE_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate \
72-
-Dexpression=project.version -q -ntp -DforceStdout | tail -n 1)
67+
PRESTO_RELEASE_VERSION=$(grep -m 1 "^ <version>" pom.xml | sed -e 's/.*<version>\(.*\)<\/version>.*/\1/' | sed -e 's/-SNAPSHOT//')
7368
echo "PRESTO_RELEASE_VERSION=$PRESTO_RELEASE_VERSION" >> $GITHUB_ENV
7469
echo "PRESTO_RELEASE_VERSION=$PRESTO_RELEASE_VERSION"
7570
7671
- name: Prepare release tag and commits
7772
run: |
7873
git reset --hard
7974
unset MAVEN_CONFIG && ./mvnw release:prepare --batch-mode \
75+
-Pspark2,spark3 \
8076
-DskipTests \
8177
-DautoVersionSubmodules \
8278
-DdevelopmentVersion=${{ env.PRESTO_RELEASE_VERSION }} \

0 commit comments

Comments
 (0)