Skip to content

Commit 81f170d

Browse files
committed
fix workflow version number
Signed-off-by: Zhongnan Su <szhongna@amazon.com>
1 parent 7dc9eb1 commit 81f170d

4 files changed

Lines changed: 17 additions & 14 deletions

File tree

.github/workflows/dashboards-reports-release-workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
env:
99
PLUGIN_NAME: reportsDashboards
1010
ARTIFACT_NAME: reports-dashboards
11-
OPENSEARCH_BRANCH: '1.0'
11+
OPENSEARCH_VERSION: '1.0'
1212
OPENSEARCH_PLUGIN_VERSION: 1.0.0.0
1313

1414
jobs:
@@ -30,7 +30,7 @@ jobs:
3030
uses: actions/checkout@v1
3131
with:
3232
repository: opensearch-project/Opensearch-Dashboards
33-
ref: ${{ env.OPENSEARCH_BRANCH }}
33+
ref: ${{ env.OPENSEARCH_VERSION }}
3434
path: dashboards-reports/OpenSearch-Dashboards
3535

3636
- name: Setup Node

.github/workflows/dashboards-reports-test-and-build-workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on: [pull_request, push]
55
env:
66
PLUGIN_NAME: reportsDashboards
77
ARTIFACT_NAME: reports-dashboards
8-
OPENSEARCH_BRANCH: '1.0'
8+
OPENSEARCH_VERSION: '1.0'
99
OPENSEARCH_PLUGIN_VERSION: 1.0.0.0
1010

1111
jobs:
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/checkout@v1
2020
with:
2121
repository: opensearch-project/Opensearch-Dashboards
22-
ref: ${{ env.OPENSEARCH_BRANCH }}
22+
ref: ${{ env.OPENSEARCH_VERSION }}
2323
path: dashboards-reports/OpenSearch-Dashboards
2424

2525
- name: Setup Node

.github/workflows/reports-scheduler-test-and-build-workflow.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ name: Test and Build Reports Scheduler
33
on: [push, pull_request]
44

55
env:
6-
OPENSEARCH_BRANCH: '1.0'
7-
OPENSEARCH_VERSION: '1.0.0'
6+
OPENSEARCH_VERSION: '1.0'
7+
COMMON_UTILS_VERSION: '1.0'
8+
JOB_SCHEDULER_VERSION: '1.0'
89

910
jobs:
1011
build:
@@ -22,7 +23,7 @@ jobs:
2223
with:
2324
repository: 'opensearch-project/OpenSearch'
2425
path: OpenSearch
25-
ref: ${{ env.OPENSEARCH_BRANCH }}
26+
ref: ${{ env.OPENSEARCH_VERSION }}
2627
- name: Build OpenSearch
2728
working-directory: ./OpenSearch
2829
run: ./gradlew publishToMavenLocal -Dbuild.snapshot=false
@@ -32,22 +33,22 @@ jobs:
3233
uses: actions/checkout@v2
3334
with:
3435
repository: 'opensearch-project/common-utils'
35-
ref: ${{ env.OPENSEARCH_BRANCH }}
36+
ref: ${{ env.COMMON_UTILS_VERSION }}
3637
path: common-utils
3738
- name: Build common-utils
3839
working-directory: ./common-utils
39-
run: ./gradlew publishToMavenLocal -Dopensearch.version=${{ env.OPENSEARCH_VERSION }}
40+
run: ./gradlew publishToMavenLocal -Dopensearch.version=${{ env.OPENSEARCH_VERSION }}.0
4041

4142
# dependencies: job-scheduler
4243
- name: Checkout job-scheduler
4344
uses: actions/checkout@v2
4445
with:
4546
repository: 'opensearch-project/job-scheduler'
46-
ref: ${{ env.OPENSEARCH_BRANCH }}
47+
ref: ${{ env.JOB_SCHEDULER_VERSION }}
4748
path: job-scheduler
4849
- name: Build job-scheduler
4950
working-directory: ./job-scheduler
50-
run: ./gradlew publishToMavenLocal -Dopensearch.version=${{ env.OPENSEARCH_VERSION }} -Dbuild.snapshot=false
51+
run: ./gradlew publishToMavenLocal -Dopensearch.version=${{ env.OPENSEARCH_VERSION }}.0 -Dbuild.snapshot=false
5152

5253
# reports-scheduler
5354
- name: Checkout Reports Scheduler
@@ -56,7 +57,7 @@ jobs:
5657
- name: Build with Gradle
5758
run: |
5859
cd reports-scheduler
59-
./gradlew build -Dopensearch.version=${{ env.OPENSEARCH_VERSION }}
60+
./gradlew build -Dopensearch.version=${{ env.OPENSEARCH_VERSION }}.0
6061
6162
- name: Upload coverage
6263
uses: codecov/codecov-action@v1

reports-scheduler/build.gradle

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ buildscript {
3232
opensearch_group = "org.opensearch"
3333
opensearch_version = System.getProperty("opensearch.version", "1.0.0")
3434
kotlin_version = System.getProperty("kotlin.version", "1.4.0")
35+
common_utils_version = "1.0.0.0"
36+
job_scheduler_version = "1.0.0.0"
3537
}
3638

3739
repositories {
@@ -139,8 +141,8 @@ dependencies {
139141
compile "org.jetbrains.kotlin:kotlin-stdlib:${kotlin_version}"
140142
compile "org.jetbrains.kotlin:kotlin-stdlib-common:${kotlin_version}"
141143
compile "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9"
142-
compile "${group}:common-utils:${opensearchVersion}"
143-
compileOnly "${group}:opensearch-job-scheduler-spi:${opensearchVersion}"
144+
compile "${group}:common-utils:${common_utils_version}"
145+
compileOnly "${group}:opensearch-job-scheduler-spi:${job_scheduler_version}"
144146
compile group: 'com.google.guava', name: 'guava', version: '15.0'
145147
compile "org.json:json:20180813"
146148
compile group: 'com.github.wnameless', name: 'json-flattener', version: '0.1.0'

0 commit comments

Comments
 (0)