Skip to content

Commit d57c033

Browse files
committed
Use grep to determine if SNAPSHOT or not, since the SNAPSHOT has
not been built yet
1 parent 98a16db commit d57c033

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/build-and-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
cache: maven
3030
- name: Check if SDK version is SNAPSHOT
3131
run: |
32-
SDK_VERSION=$(mvn help:evaluate -Dexpression=version.sdk -q -DforceStdout 2>&1 | grep -v '\[')
32+
SDK_VERSION=$(grep -oP '<version\.sdk>\K[^<]+' pom.xml)
3333
echo "Detected SDK_VERSION: ${SDK_VERSION}"
3434
echo "SDK_VERSION=${SDK_VERSION}" >> "$GITHUB_ENV"
3535
if [[ "${SDK_VERSION}" == *"-SNAPSHOT" ]]; then

.github/workflows/run-tck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
cache: maven
3333
- name: Check if SDK version is SNAPSHOT
3434
run: |
35-
SDK_VERSION=$(mvn help:evaluate -Dexpression=version.sdk -q -DforceStdout 2>&1 | grep -v '\[')
35+
SDK_VERSION=$(grep -oP '<version\.sdk>\K[^<]+' pom.xml)
3636
echo "Detected SDK_VERSION: ${SDK_VERSION}"
3737
echo "SDK_VERSION=${SDK_VERSION}" >> "$GITHUB_ENV"
3838
if [[ "${SDK_VERSION}" == *"-SNAPSHOT" ]]; then

0 commit comments

Comments
 (0)