Skip to content

Commit

Permalink
fix github workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Zhongnan Su <szhongna@amazon.com>
  • Loading branch information
zhongnansu committed Jun 30, 2021
1 parent eb12d84 commit 7dc9eb1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dashboards-reports-release-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
env:
PLUGIN_NAME: reportsDashboards
ARTIFACT_NAME: reports-dashboards
OPENSEARCH_VERSION: '1.0'
OPENSEARCH_BRANCH: '1.0'
OPENSEARCH_PLUGIN_VERSION: 1.0.0.0

jobs:
Expand All @@ -30,7 +30,7 @@ jobs:
uses: actions/checkout@v1
with:
repository: opensearch-project/Opensearch-Dashboards
ref: ${{ env.OPENSEARCH_VERSION }}
ref: ${{ env.OPENSEARCH_BRANCH }}
path: dashboards-reports/OpenSearch-Dashboards

- name: Setup Node
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [pull_request, push]
env:
PLUGIN_NAME: reportsDashboards
ARTIFACT_NAME: reports-dashboards
OPENSEARCH_VERSION: '1.0'
OPENSEARCH_BRANCH: '1.0'
OPENSEARCH_PLUGIN_VERSION: 1.0.0.0

jobs:
Expand All @@ -19,7 +19,7 @@ jobs:
uses: actions/checkout@v1
with:
repository: opensearch-project/Opensearch-Dashboards
ref: ${{ env.OPENSEARCH_VERSION }}
ref: ${{ env.OPENSEARCH_BRANCH }}
path: dashboards-reports/OpenSearch-Dashboards

- name: Setup Node
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/reports-scheduler-test-and-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Test and Build Reports Scheduler

on: [push, pull_request]

env:
OPENSEARCH_BRANCH: '1.0'
OPENSEARCH_VERSION: '1.0.0'

jobs:
build:
Expand All @@ -19,7 +22,7 @@ jobs:
with:
repository: 'opensearch-project/OpenSearch'
path: OpenSearch
ref: '1.0'
ref: ${{ env.OPENSEARCH_BRANCH }}
- name: Build OpenSearch
working-directory: ./OpenSearch
run: ./gradlew publishToMavenLocal -Dbuild.snapshot=false
Expand All @@ -29,22 +32,22 @@ jobs:
uses: actions/checkout@v2
with:
repository: 'opensearch-project/common-utils'
ref: 'main'
ref: ${{ env.OPENSEARCH_BRANCH }}
path: common-utils
- name: Build common-utils
working-directory: ./common-utils
run: ./gradlew publishToMavenLocal -Dopensearch.version=1.0.0
run: ./gradlew publishToMavenLocal -Dopensearch.version=${{ env.OPENSEARCH_VERSION }}

# dependencies: job-scheduler
- name: Checkout job-scheduler
uses: actions/checkout@v2
with:
repository: 'opensearch-project/job-scheduler'
ref: 'main'
ref: ${{ env.OPENSEARCH_BRANCH }}
path: job-scheduler
- name: Build job-scheduler
working-directory: ./job-scheduler
run: ./gradlew publishToMavenLocal -Dopensearch.version=1.0.0 -Dbuild.snapshot=false
run: ./gradlew publishToMavenLocal -Dopensearch.version=${{ env.OPENSEARCH_VERSION }} -Dbuild.snapshot=false

# reports-scheduler
- name: Checkout Reports Scheduler
Expand All @@ -53,7 +56,7 @@ jobs:
- name: Build with Gradle
run: |
cd reports-scheduler
./gradlew build -Dopensearch.version=1.0.0
./gradlew build -Dopensearch.version=${{ env.OPENSEARCH_VERSION }}
- name: Upload coverage
uses: codecov/codecov-action@v1
Expand Down

0 comments on commit 7dc9eb1

Please sign in to comment.