Skip to content

Commit 3ceffa8

Browse files
Update update-platform-branch.yaml
1 parent b59fc27 commit 3ceffa8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/update-platform-branch.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: "Update Platform Branch"
22
# This workflow updates the platform.branch property in all pom.xml files to a new tag or branch.
33
# It is triggered by a manual dispatch or by a call from another workflow - notably from platform changes to protocol/go.
44
# This property is used to select which versions of the protocol buffer definitions to use.
5+
#
6+
# To test:
7+
# `act workflow_dispatch -W ./.github/workflows/update-platform-branch.yaml --input tag=protocol/go/v0.3.1`
58

69
on:
710
workflow_call:
@@ -27,7 +30,7 @@ jobs:
2730
- name: Validate tag as a valid git ref
2831
run: |
2932
TAG="${{ github.event.inputs.tag }}"
30-
if ! [[ "$TAG" =~ ^[a-zA-Z0-9._\-/]+$ ]]; then
33+
if ! echo "$TAG" | grep -Eq "^[a-zA-Z0-9._\-\/]+$"; then
3134
echo "Invalid tag format: [$TAG]"
3235
exit 1
3336
fi

0 commit comments

Comments
 (0)