mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 11:51:07 +07:00
Switch to setup-php.com short URLs in install.ts
This commit is contained in:
parent
ea50e73b1f
commit
988f48930d
4
dist/index.js
vendored
4
dist/index.js
vendored
@ -438,10 +438,10 @@ async function build(filename, version, os_version) {
|
||||
exports.build = build;
|
||||
async function run() {
|
||||
try {
|
||||
core.warning('setup-php v1 is deprecated.\nPlease upgrade to v2 - https://github.com/shivammathur/setup-php/wiki/Switch-to-v2');
|
||||
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://github.com/shivammathur/setup-php/wiki/Switch-to-v2');
|
||||
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 (version) {
|
||||
|
@ -56,14 +56,14 @@ export async function build(
|
||||
export async function run(): Promise<void> {
|
||||
try {
|
||||
core.warning(
|
||||
'setup-php v1 is deprecated.\nPlease upgrade to v2 - https://github.com/shivammathur/setup-php/wiki/Switch-to-v2'
|
||||
'setup-php v1 is deprecated.\nPlease upgrade to v2 - https://setup-php.com/w/Switch-to-v2'
|
||||
);
|
||||
const version: string = 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://github.com/shivammathur/setup-php/wiki/Switch-to-v2'
|
||||
'PHP 8.1 is not supported on setup-php v1.\nPlease upgrade to v2 - https://setup-php.com/w/Switch-to-v2'
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user