Skip to content

Commit

Permalink
fix(ci): detect cloud environment when pushing on master (#1795)
Browse files Browse the repository at this point in the history
  • Loading branch information
kduret committed Oct 30, 2024
1 parent 97a08cf commit d1f4901
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/get-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d1f4901

Please sign in to comment.