From d1f49013b8bb1f8d7a3761ed7c65c7fe1c98e53d Mon Sep 17 00:00:00 2001 From: Kevin Duret Date: Wed, 30 Oct 2024 12:23:23 +0100 Subject: [PATCH] fix(ci): detect cloud environment when pushing on master (#1795) --- .github/workflows/get-environment.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/get-environment.yml b/.github/workflows/get-environment.yml index d88b4128337..c33fad5fe5f 100644 --- a/.github/workflows/get-environment.yml +++ b/.github/workflows/get-environment.yml @@ -207,6 +207,10 @@ jobs: uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 with: script: | + if ("${{ github.ref_name }}" === "master") { + return true; + } + if ("${{ github.event_name }}" === "pull_request") { const prPath = ${{ steps.pr_path.outputs.result || '[]' }}; const finalTargetBranch = prPath.pop();