Skip to content

Commit b9324d2

Browse files
committed
Get the right standalone suffix when PR on a "maint/update_code_for_*" branch
Signed-off-by: paul.profizi <[email protected]> Get the right standalone suffix when PR on a "maint/update_code_for_*" branch Signed-off-by: paul.profizi <[email protected]>
1 parent 357d10a commit b9324d2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ jobs:
5555
base_ref=${{ github.base_ref }}
5656
suffix=${ref_name/$sub[0-9][0-9][0-9]/''}
5757
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_*/''}
5862
fi
5963
echo "suffix=$suffix" >> "$GITHUB_OUTPUT"
6064
fi

0 commit comments

Comments
 (0)