Sunset support for Ubuntu 16.04

This commit is contained in:
Shivam Mathur
2021-08-02 22:55:00 +05:30
parent b57416e44d
commit 506357cdb9
5 changed files with 12 additions and 19 deletions
+6 -5
View File
@@ -55,6 +55,12 @@ export async function build(
*/
export async function run(): Promise<void> {
try {
if ((await utils.readEnv('ImageOS')) == 'ubuntu16') {
core.setFailed(
'setup-php is not supported on Ubuntu 16.04. Please upgrade to Ubuntu 18.04 or Ubuntu 20.04 - https://setup-php.com/i/452'
);
return;
}
core.warning(
'setup-php v1 is deprecated.\nPlease upgrade to v2 - https://setup-php.com/w/Switch-to-v2'
);
@@ -67,11 +73,6 @@ export async function run(): Promise<void> {
);
return;
}
if ((await utils.readEnv('ImageOS')) == 'ubuntu16') {
core.warning(
'setup-php will stop working on Ubuntu 16.04 from August 1, 2021. Please upgrade to Ubuntu 18.04 or Ubuntu 20.04 - https://setup-php.com/i/452'
);
}
if (version) {
const os_version: string = process.platform;
// check the os version and run the respective script