mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2026-01-25 20:32:19 +01:00
* gha: Add Pull Request to stale target * gha: Add ncc check step (Close #98 ) * src: Rename showVersion() * test: Add not to be cases * Remove old comment * gha: Add update major tag workflow (Close #97 )
12 lines
287 B
TypeScript
12 lines
287 B
TypeScript
export default function getOS(platform: string) {
|
|
if (platform === 'linux') {
|
|
return 'Linux';
|
|
} else if (platform === 'darwin') {
|
|
return 'macOS';
|
|
} else if (platform === 'win32') {
|
|
return 'Windows';
|
|
} else {
|
|
throw new Error(`${platform} is not supported`);
|
|
}
|
|
}
|