From c5250244d2295883cbca48ccf225cb81a6ba5663 Mon Sep 17 00:00:00 2001 From: Yury-Fridlyand Date: Tue, 28 Feb 2023 17:12:33 -0800 Subject: [PATCH] Typo fix and minor improvement in `maven-publish` GHA workflow. Signed-off-by: Yury-Fridlyand --- .github/workflows/maven-publish.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 465e0b94bc..8adf7ae52c 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -3,14 +3,16 @@ name: Publish snapshots to maven on: workflow_dispatch: push: - branches: [ - main - 1.* - 2.* - ] + branches: + - main + - 1.* + - 2.* jobs: build-and-publish-snapshots: + strategy: + fail-fast: false + if: github.repository == 'opensearch-project/sql' runs-on: ubuntu-latest permissions: @@ -23,7 +25,7 @@ jobs: distribution: temurin # Temurin is a distribution of adoptium java-version: 11 - uses: actions/checkout@v3 - - uses: aws-actions/configure-aws-credentials@v1 + - uses: aws-actions/configure-aws-credentials@v1.7.0 with: role-to-assume: ${{ secrets.PUBLISH_SNAPSHOTS_ROLE }} aws-region: us-east-1