mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 11:51:07 +07:00
Allow major.minor protoc versions
This commit is contained in:
parent
e186e47261
commit
3514d30f93
@ -20,7 +20,7 @@ Function Get-ProtobufTag() {
|
||||
Function Add-Protoc() {
|
||||
param(
|
||||
[Parameter(Mandatory = $true, Position = 0, HelpMessage = 'The PHP version to be installed')]
|
||||
[ValidatePattern('^latest$|^(v?)\d+\.\d+\.\d+$')]
|
||||
[ValidatePattern('^latest$|^(v?)\d+\.\d+(\.\d+)?$')]
|
||||
[string] $protobuf_tag
|
||||
)
|
||||
$protobuf_tag = Get-ProtobufTag
|
||||
|
Loading…
Reference in New Issue
Block a user