feat: Add TypeScript Action (#83)

cf. https://github.com/peaceiris/actions-github-pages
Close #54
This commit is contained in:
Shohei Ueda authored and GitHub committed 2020-02-05 14:34:19 +09:00
1 parent 28b05fd3fa
commit 68b21c12af
39 files changed
+9269 -241

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import * as core from '@actions/core';
export function getHomeDir(): string {
let homedir = '';
if (process.platform === 'win32') {
homedir = process.env['USERPROFILE'] || 'C:\\';
} else {
homedir = `${process.env.HOME}`;
}
core.debug(`homeDir: ${homedir}`);
return homedir;
}