mirror of
https://github.com/shimataro/ssh-key-action.git
synced 2025-06-19 22:52:10 +10:00
Feature/container (#170)
* support Docker container * move .ssh to /root * remove print step * change home directory for Docker container * print HOME * print home * print home * update dist file * update dirname * update CHANGELOG * add badge
This commit is contained in:
parent
0b924ac88f
commit
026e5f82bf
5 changed files with 45 additions and 0 deletions
|
@ -485,6 +485,10 @@ function getHomeDirectory() {
|
|||
if (home === undefined) {
|
||||
throw Error(`${homeEnv} is not defined`);
|
||||
}
|
||||
if (home === "/github/home") {
|
||||
// Docker container
|
||||
return "/root";
|
||||
}
|
||||
return home;
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue