Skip to content

Commit

Permalink
ci: 👷 use base_ref instead of ref_name
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideSegullo committed Oct 27, 2024
1 parent ccc506e commit 98c003d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 98c003d

Please sign in to comment.