mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-04-05 14:59:49 +00:00
Warn users when installing EOL .NET versions (#245)
This commit is contained in:
@ -285,7 +285,14 @@ export class DotnetCoreInstaller {
|
||||
);
|
||||
}
|
||||
|
||||
return releasesInfo[0]['releases.json'];
|
||||
const releaseInfo = releasesInfo[0];
|
||||
if (releaseInfo['support-phase'] === 'eol') {
|
||||
core.warning(
|
||||
`${releaseInfo['product']} ${releaseInfo['channel-version']} is no longer supported and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the .NET support policy.`
|
||||
);
|
||||
}
|
||||
|
||||
return releaseInfo['releases.json'];
|
||||
}
|
||||
|
||||
private version: string;
|
||||
|
Reference in New Issue
Block a user