From da9f1e33d0e0a5b216870d7451ef465a0fba3524 Mon Sep 17 00:00:00 2001 From: Paul Profizi <100710998+PProfizi@users.noreply.github.com> Date: Tue, 12 Dec 2023 21:03:04 +0100 Subject: [PATCH] Fix Server suffix selection (#1324) --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 791f87c822..710731a441 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,8 +50,8 @@ jobs: elif [[ ${{ github.event_name == 'pull_request' }} ]]; then # If the PR is server-sync then extract suffix from branch name sub='maint/update_code_for_' - if [[ "${{ github.ref }}" == *"$sub"* ]]; then - ref_name=${{ github.ref }} + if [[ "${{ github.head_ref }}" == *"$sub"* ]]; then + ref_name=${{ github.head_ref }} base_ref=${{ github.base_ref }} suffix=${ref_name/$sub[0-9][0-9][0-9]/''} suffix=${suffix/_on_$base_ref/''}