mirror of
https://github.com/actions/labeler.git
synced 2025-12-15 06:27:13 +00:00
build
This commit is contained in:
4
node_modules/windows-release/index.js
generated
vendored
4
node_modules/windows-release/index.js
generated
vendored
@@ -34,9 +34,9 @@ const windowsRelease = release => {
|
||||
if ((!release || release === os.release()) && ['6.1', '6.2', '6.3', '10.0'].includes(ver)) {
|
||||
let stdout;
|
||||
try {
|
||||
stdout = execa.sync('powershell', ['(Get-CimInstance -ClassName Win32_OperatingSystem).caption']).stdout || '';
|
||||
} catch (_) {
|
||||
stdout = execa.sync('wmic', ['os', 'get', 'Caption']).stdout || '';
|
||||
} catch (_) {
|
||||
stdout = execa.sync('powershell', ['(Get-CimInstance -ClassName Win32_OperatingSystem).caption']).stdout || '';
|
||||
}
|
||||
|
||||
const year = (stdout.match(/2008|2012|2016|2019/) || [])[0];
|
||||
|
||||
Reference in New Issue
Block a user