From 98c003ddb22ac7c247603c509b0edbd87934a5f1 Mon Sep 17 00:00:00 2001 From: Davide Segullo Date: Sun, 27 Oct 2024 02:26:31 +0200 Subject: [PATCH] ci: :construction_worker: use base_ref instead of ref_name --- .github/workflows/pr-checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index ab65a16..914fc41 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -6,7 +6,7 @@ on: jobs: checks: runs-on: ubuntu-latest - environment: ${{ github.ref_name == 'main' && 'production' || github.ref_name == 'v1' && 'production' || 'preview' }} + environment: ${{ github.base_ref == 'main' && 'production' || github.base_ref == 'v1' && 'production' || 'preview' }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} RELEASE_PREID: ${{ vars.RELEASE_PREID }}