File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff 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
69on :
710 workflow_call :
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
You can’t perform that action at this time.
0 commit comments