We would like the base ref, not the head ref

This commit is contained in:
Quentin Gliech 2024-06-14 16:00:22 +02:00
parent f7369efb33
commit b6cff7a3f5
No known key found for this signature in database
GPG key ID: 22D62B84552719FC

View file

@ -481,7 +481,7 @@ jobs:
env:
# If this is a pull request to a release branch, use that branch as default branch for sytest, else use develop
# This works because the release script always create a branch on the sytest repo with the same name as the release branch
SYTEST_DEFAULT_BRANCH: ${{ startsWith(github.head_ref, 'release-') && github.head_ref || 'develop' }}
SYTEST_DEFAULT_BRANCH: ${{ startsWith(github.base_ref, 'release-') && github.base_ref || 'develop' }}
SYTEST_BRANCH: ${{ github.head_ref }}
POSTGRES: ${{ matrix.job.postgres && 1}}
MULTI_POSTGRES: ${{ (matrix.job.postgres == 'multi-postgres') || '' }}