Skip to content

Commit d6ca60a

Browse files
Merge pull request #1316 from percona/PBM-1759
PBM-1759. Fix template injection in step for determining test branch
2 parents 8c7f0ca + 4300c08 commit d6ca60a

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,13 @@ jobs:
6969
7070
- name: Determine test branch
7171
id: test_branch
72+
env:
73+
TESTS_VER: ${{ github.event.inputs.tests_ver }}
74+
PR_TITLE: ${{ github.event.pull_request.title }}
7275
run: |
73-
if [ -n "${{ github.event.inputs.tests_ver }}" ]; then
74-
echo "branch=${{ github.event.inputs.tests_ver }}" >> $GITHUB_OUTPUT
75-
elif [ -n "${{ github.event.pull_request.title }}" ]; then
76-
PR_TITLE="${{ github.event.pull_request.title }}"
76+
if [ -n "$TESTS_VER" ]; then
77+
echo "branch=$TESTS_VER" >> $GITHUB_OUTPUT
78+
elif [ -n "$PR_TITLE" ]; then
7779
echo "PR title: $PR_TITLE"
7880
BRANCH_TO_CHECK=$(echo "$PR_TITLE" | grep -oE 'PBM-[0-9]+' | head -1)
7981
if [ -n "$BRANCH_TO_CHECK" ]; then

0 commit comments

Comments
 (0)