From 38d01950263935cdd338ce444bc1beee343fca42 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Tue, 11 Jul 2023 17:08:40 -0400 Subject: [PATCH] Only test Signed-off-by: Peter Zhu --- .github/workflows/CI-workflow.yml | 22 +++++++++++++++---- .github/workflows/dco.yml | 18 --------------- {.github/workflows => testyml}/backport.yml | 0 .../delete_backport_branch.yml | 0 .../draft-release-notes-workflow.yml | 0 {.github/workflows => testyml}/labeler.yml | 0 .../workflows => testyml}/maven-publish.yml | 0 {.github/workflows => testyml}/test_bwc.yml | 0 8 files changed, 18 insertions(+), 22 deletions(-) delete mode 100644 .github/workflows/dco.yml rename {.github/workflows => testyml}/backport.yml (100%) rename {.github/workflows => testyml}/delete_backport_branch.yml (100%) rename {.github/workflows => testyml}/draft-release-notes-workflow.yml (100%) rename {.github/workflows => testyml}/labeler.yml (100%) rename {.github/workflows => testyml}/maven-publish.yml (100%) rename {.github/workflows => testyml}/test_bwc.yml (100%) diff --git a/.github/workflows/CI-workflow.yml b/.github/workflows/CI-workflow.yml index fd71212c89..6e20eecbb7 100644 --- a/.github/workflows/CI-workflow.yml +++ b/.github/workflows/CI-workflow.yml @@ -1,7 +1,4 @@ name: Build and Test ml-commons -env: - OPENAI_KEY: ${{ secrets.OPENAI_KEY }} - COHERE_KEY: ${{ secrets.COHERE_KEY }} # This workflow is triggered on pull requests and push to any branches on: pull_request: @@ -14,12 +11,29 @@ jobs: Build-ml: strategy: matrix: - java: [11, 17] + java: [11] + #java: [11, 17] name: Build and Test MLCommons Plugin runs-on: ubuntu-latest + permissions: + id-token: write + contents: write + steps: + - uses: aws-actions/configure-aws-credentials@v1 + with: + role-to-assume: ${{ secrets.ML_ROLE }} + aws-region: us-west-2 + + - name: Test print + run: | + export OPENAI_KEY=$(aws secretsmanager get-secret-value --secret-id github_openai_key --query SecretString --output text) + echo OPENAI_KEY $OPENAI_KEY + exit 1 + #echo "::add-mask::$OPENAI_KEY" + - name: Setup Java ${{ matrix.java }} uses: actions/setup-java@v1 with: diff --git a/.github/workflows/dco.yml b/.github/workflows/dco.yml deleted file mode 100644 index cf30ea89dc..0000000000 --- a/.github/workflows/dco.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: Developer Certificate of Origin Check - -on: [pull_request] - -jobs: - check: - runs-on: ubuntu-latest - - steps: - - name: Get PR Commits - id: 'get-pr-commits' - uses: tim-actions/get-pr-commits@v1.1.0 - with: - token: ${{ secrets.GITHUB_TOKEN }} - - name: DCO Check - uses: tim-actions/dco@v1.1.0 - with: - commits: ${{ steps.get-pr-commits.outputs.commits }} diff --git a/.github/workflows/backport.yml b/testyml/backport.yml similarity index 100% rename from .github/workflows/backport.yml rename to testyml/backport.yml diff --git a/.github/workflows/delete_backport_branch.yml b/testyml/delete_backport_branch.yml similarity index 100% rename from .github/workflows/delete_backport_branch.yml rename to testyml/delete_backport_branch.yml diff --git a/.github/workflows/draft-release-notes-workflow.yml b/testyml/draft-release-notes-workflow.yml similarity index 100% rename from .github/workflows/draft-release-notes-workflow.yml rename to testyml/draft-release-notes-workflow.yml diff --git a/.github/workflows/labeler.yml b/testyml/labeler.yml similarity index 100% rename from .github/workflows/labeler.yml rename to testyml/labeler.yml diff --git a/.github/workflows/maven-publish.yml b/testyml/maven-publish.yml similarity index 100% rename from .github/workflows/maven-publish.yml rename to testyml/maven-publish.yml diff --git a/.github/workflows/test_bwc.yml b/testyml/test_bwc.yml similarity index 100% rename from .github/workflows/test_bwc.yml rename to testyml/test_bwc.yml