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

2
dist/index.js vendored
View File

@ -1298,7 +1298,7 @@ async function resolveVersion() {
core.info(`Resolved ${versionFile} as ${version}`);
}
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;
}