Deprecate Ubuntu 16.04

This commit is contained in:
Shivam Mathur
2021-05-04 23:43:26 +05:30
parent d5790807c8
commit 4067ce8b81
3 changed files with 10 additions and 3 deletions

View File

@ -51,6 +51,11 @@ export async function getScript(
*/
export async function run(): Promise<void> {
try {
if ((await utils.readEnv('ImageOS')) == 'ubuntu16') {
core.warning(
'Ubuntu 16.04 is deprecated.\nPlease upgrade to Ubuntu 18.04 or Ubuntu 20.04 - https://setup-php.com/i/452'
);
}
const version: string = await utils.parseVersion(
await utils.getInput('php-version', true)
);