Skip to content

Commit 12d7303

Browse files
authored
Use the release branch for sytest in release-branch PRs (#17306)
1 parent a3cb244 commit 12d7303

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,9 @@ jobs:
479479
volumes:
480480
- ${{ github.workspace }}:/src
481481
env:
482+
# If this is a pull request to a release branch, use that branch as default branch for sytest, else use develop
483+
# This works because the release script always create a branch on the sytest repo with the same name as the release branch
484+
SYTEST_DEFAULT_BRANCH: ${{ startsWith(github.base_ref, 'release-') && github.base_ref || 'develop' }}
482485
SYTEST_BRANCH: ${{ github.head_ref }}
483486
POSTGRES: ${{ matrix.job.postgres && 1}}
484487
MULTI_POSTGRES: ${{ (matrix.job.postgres == 'multi-postgres') || '' }}

changelog.d/17306.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Use the release branch for sytest in release-branch PRs.

0 commit comments

Comments
 (0)