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

7
dist/index.js vendored
View File

@ -438,15 +438,16 @@ async function build(filename, version, os_version) {
exports.build = build;
async function run() {
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');
const version = await utils.parseVersion(await utils.getInput('php-version', true));
if (version == '8.1') {
core.setFailed('PHP 8.1 is not supported on setup-php v1.\nPlease upgrade to v2 - https://setup-php.com/w/Switch-to-v2');
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 = process.platform;
let script_path = '';