From e221a7152bd36bb4dae15e62b76d946ff36975d3 Mon Sep 17 00:00:00 2001 From: mschaab <53225534+mschaab-SA@users.noreply.github.com> Date: Fri, 12 Jan 2024 14:31:52 -0300 Subject: [PATCH] Update github-actions.yml (#161) --- .github/workflows/github-actions.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 3e2b5bb..76fa38e 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -21,6 +21,7 @@ jobs: run: ./gradlew test # Might want to remove this step - name: Archive production artifacts ⬆️ + if: ${{ github.event_name == 'pull_request' && github.pull_request_target == 'master' }} uses: actions/upload-artifact@v3 with: name: Artifacts @@ -34,6 +35,7 @@ jobs: jf rt ping # This command adds a new server configuration to the JFrog CLI - name: Create version for Artifactory + if: ${{ github.event_name == 'pull_request' && github.pull_request_target == 'master' }} run: | export BUILD_NAME="saidp-sdk-java" export BUILD_MODULE="sdk-java"