mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-26 13:23:05 +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() {
|
Function Add-Protoc() {
|
||||||
param(
|
param(
|
||||||
[Parameter(Mandatory = $true, Position = 0, HelpMessage = 'The PHP version to be installed')]
|
[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
|
[string] $protobuf_tag
|
||||||
)
|
)
|
||||||
$protobuf_tag = Get-ProtobufTag
|
$protobuf_tag = Get-ProtobufTag
|
||||||
|
Loading…
Reference in New Issue
Block a user