mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2026-10-03 01:51:37 +00:00
feat: Add TypeScript Action (#83)
cf. https://github.com/peaceiris/actions-github-pages Close #54
This commit is contained in:
1 parent
28b05fd3fa
commit
68b21c12af
39 files changed
+9269
-241
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user