mirror of
https://github.com/shivammathur/setup-php.git
synced 2026-09-20 10:51:29 +00:00
Sunset support for Ubuntu 16.04
This commit is contained in:
+6
-5
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user