From 69ad05d448b87a49463d5da8d34f1f9511f9f31b Mon Sep 17 00:00:00 2001 From: Maxime David Date: Tue, 6 Aug 2024 18:24:21 +0200 Subject: [PATCH] feat: disable CodeArtifact publishing, enable CodeCov publishing --- .../workflows/runtime-interface-client_merge_to_main.yml | 8 ++++---- .github/workflows/runtime-interface-client_pr.yml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/runtime-interface-client_merge_to_main.yml b/.github/workflows/runtime-interface-client_merge_to_main.yml index 1ca92349..a91fd95f 100644 --- a/.github/workflows/runtime-interface-client_merge_to_main.yml +++ b/.github/workflows/runtime-interface-client_merge_to_main.yml @@ -54,7 +54,7 @@ jobs: IS_JAVA_8: true - name: Issue AWS credentials - if: ${{ github.repository != "aws/aws-lambda-java-libs" }} + if: ${{ github.repository != 'aws/aws-lambda-java-libs' }} uses: aws-actions/configure-aws-credentials@v4 with: aws-region: ${{ secrets.AWS_REGION }} @@ -63,7 +63,7 @@ jobs: role-duration-seconds: 900 - name: Prepare codeartifact properties - if: ${{ github.repository != "aws/aws-lambda-java-libs" }} + if: ${{ github.repository != 'aws/aws-lambda-java-libs' }} working-directory: ./aws-lambda-java-runtime-interface-client/ric-dev-environment run: | cat < codeartifact-properties.mk @@ -74,14 +74,14 @@ jobs: EOF - name: Publish - if: ${{ github.repository != "aws/aws-lambda-java-libs" }} + if: ${{ github.repository != 'aws/aws-lambda-java-libs' }} working-directory: ./aws-lambda-java-runtime-interface-client env: ENABLE_SNAPSHOT: ${{ secrets.ENABLE_SNAPSHOT }} run: make publish - name: Upload coverage to Codecov - if: ${{ github.repository != "aws/aws-lambda-java-libs" }} + if: ${{ github.repository != 'aws/aws-lambda-java-libs' }} uses: codecov/codecov-action@v4 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/runtime-interface-client_pr.yml b/.github/workflows/runtime-interface-client_pr.yml index 00cedc98..dcac0b38 100644 --- a/.github/workflows/runtime-interface-client_pr.yml +++ b/.github/workflows/runtime-interface-client_pr.yml @@ -64,7 +64,7 @@ jobs: path: ./aws-lambda-java-runtime-interface-client/target/aws-lambda-java-runtime-interface-client-*.jar - name: Upload coverage to Codecov - if: ${{ github.repository == "aws/aws-lambda-java-libs" }} + if: ${{ github.repository == 'aws/aws-lambda-java-libs' }} uses: codecov/codecov-action@v4 env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}