From e486b9f0ecb0d258180ae0832feefd362393e2db Mon Sep 17 00:00:00 2001 From: Sam Lin <456807+maxisam@users.noreply.github.com> Date: Mon, 28 Oct 2024 17:11:34 -0500 Subject: [PATCH] refactor: remove gcloud section if event is pull_request (#141) --- .github/workflows/build.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 259ce40..2ec9d9f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -96,9 +96,9 @@ jobs: BUILD_DATE=${{ env.NOW }} VCS_REF=${{ github.sha }} VERSION=${{ env.APP_VERSION }}.${{ github.run_number }} - EN_AWS_CLI=false - EN_AZURE=false - EN_GCLOUD=false + EN_AWS_CLI=true + EN_AZURE=true + EN_GCLOUD=true EN_MINIO=true EN_RCLONE=true EN_GPG=true @@ -114,6 +114,12 @@ jobs: run: | echo "$GCLOUD_KEY" | base64 --decode > ${{ github.workspace }}/test/gh-actions/gcloud.json + - name: Install yq and remove gcloud section if event is pull_request + if: github.event_name == 'pull_request' + run: | + sudo apt-get install -y yq + yq eval 'del(.gcloud)' -i test/gh-actions/mongo-test.yml + - name: Run Mgob image env: AZURE_CONNECTIONSTRING: ${{ secrets.AZURE_CONNECTIONSTRING }}