Skip to content

Commit

Permalink
Fix Server suffix selection (#1324)
Browse files Browse the repository at this point in the history
  • Loading branch information
PProfizi authored Dec 12, 2023
1 parent 935be28 commit da9f1e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/''}
Expand Down

0 comments on commit da9f1e3

Please sign in to comment.