We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 357d10a commit 5f8e252Copy full SHA for 5f8e252
.github/workflows/ci.yml
@@ -50,11 +50,15 @@ jobs:
50
elif ${{ github.event_name == 'pull_request' }}; then
51
# If the PR is server-sync then extract suffix from branch name
52
sub='maint/update_code_for_'
53
- if [[ "${{ github.head_ref }}" == *"$sub"* ]]; then
+ if [[ "${{ github.head_ref }}" == *"$sub"*]]; then
54
ref_name=${{ github.head_ref }}
55
base_ref=${{ github.base_ref }}
56
suffix=${ref_name/$sub[0-9][0-9][0-9]/''}
57
suffix=${suffix/_on_$base_ref/''}
58
+ elif [["${{ github.base_ref }}" == *"$sub"*]]; then
59
+ base_ref=${{ github.base_ref }}
60
+ suffix=${base_ref/$sub[0-9][0-9][0-9]/''}
61
+ suffix=${suffix/_on_*/''}
62
fi
63
echo "suffix=$suffix" >> "$GITHUB_OUTPUT"
64
0 commit comments