Move php version default out of action.yml and update inputs #629 #690

This commit is contained in:
Steve Lacey
2023-01-29 16:09:30 +08:00
parent 2d47531473
commit b46c8e2a8c
4 changed files with 6 additions and 15 deletions

View File

@ -446,9 +446,7 @@ export async function resolveVersion(): Promise<string> {
}
if (!version) {
throw new Error(
"Neither 'php-version' nor 'php-version-file' inputs were supplied, and could not find '.php-version' file."
);
version = 'latest';
}
return version;