Added the option to specify php-version: latest
This commit is contained in:
parent
8f0cfca455
commit
729fcb4756
3
dist/index.js
vendored
3
dist/index.js
vendored
@ -2506,6 +2506,9 @@ exports.build = build;
|
||||
async function run() {
|
||||
try {
|
||||
let version = await utils.getInput('php-version', true);
|
||||
if (version === 'latest') {
|
||||
version = '7.4';
|
||||
}
|
||||
version = version.length > 1 ? version.slice(0, 3) : version + '.0';
|
||||
const os_version = process.platform;
|
||||
// check the os version and run the respective script
|
||||
|
||||
@ -62,6 +62,9 @@ export async function build(
|
||||
export async function run(): Promise<void> {
|
||||
try {
|
||||
let version: string = await utils.getInput('php-version', true);
|
||||
if (version === 'latest') {
|
||||
version = '7.4';
|
||||
}
|
||||
version = version.length > 1 ? version.slice(0, 3) : version + '.0';
|
||||
const os_version: string = process.platform;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user