diff --git a/dist/index.js b/dist/index.js index 8afc200d..3422accd 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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 diff --git a/src/install.ts b/src/install.ts index 046204e3..60ab29ae 100644 --- a/src/install.ts +++ b/src/install.ts @@ -62,6 +62,9 @@ export async function build( export async function run(): Promise { 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;