Skip to content

Commit d16d4ff

Browse files
committed
Pick the right OS version in KNN tests
Signed-off-by: Gulshan <[email protected]>
1 parent a34e8d9 commit d16d4ff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/security-knn-tests.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ jobs:
2828
- id: plugin-availability-check
2929
name: "plugin check"
3030
run: |
31-
opensearch_version=$(grep "System.getProperty(\"opensearch.version\", \"" build.gradle | grep '\([0-9]\|[.]\)\{5\}' -o)
32-
opensearch_version=$opensearch_version".0-SNAPSHOT"
31+
opensearch_version=$(./gradlew properties | grep -E '^version:' | awk '{print $2}')
3332
# we publish build artifacts to the below url
3433
sec_plugin_url="https://aws.oss.sonatype.org/content/repositories/snapshots/org/opensearch/plugin/opensearch-security/"$opensearch_version"/"
3534
sec_st=$(curl -s -o /dev/null -w "%{http_code}" $sec_plugin_url)

0 commit comments

Comments
 (0)