Update Ubuntu 16.04 warning in install.ts

This commit is contained in:
Shivam Mathur 2021-07-13 14:21:36 +05:30
parent c61b9256d1
commit 3b2ce6cae6
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View File

@ -440,7 +440,7 @@ exports.getScript = getScript;
async function run() { async function run() {
try { try {
if ((await utils.readEnv('ImageOS')) == 'ubuntu16') { 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'); 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');
} }
const version = await utils.parseVersion(await utils.getInput('php-version', true)); const version = await utils.parseVersion(await utils.getInput('php-version', true));
if (version) { if (version) {

View File

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