Refactor key generation logic and update path resolving
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
#GIT_URI=ssh://git@git.domain/username/example-repo.git
|
#GIT_URI=ssh://git@git.domain/username/example-repo.git
|
||||||
GIT_URI=https://<username>:<token>@git.domain/username/example-repo.git
|
GIT_URI=https://<username>:<token>@git.domain/username/example-repo.git
|
||||||
GIT_BRANCH=main
|
GIT_BRANCH=main
|
||||||
#COMMANDS="['npm i','npm start']"
|
#COMMANDS='["npm i","npm start"]'
|
||||||
3
index.js
3
index.js
@@ -158,8 +158,9 @@ async function main() {
|
|||||||
if (customCommands) {
|
if (customCommands) {
|
||||||
try {
|
try {
|
||||||
customCommands = JSON.parse(customCommands)
|
customCommands = JSON.parse(customCommands)
|
||||||
} catch {
|
} catch (err) {
|
||||||
console.error("couln't parse commands from .env")
|
console.error("couln't parse commands from .env")
|
||||||
|
console.log(err.message)
|
||||||
customCommands = undefined;
|
customCommands = undefined;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user