mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2024-11-25 09:58:39 +00:00
main: preserve env - sudo
This commit is contained in:
parent
95ac226ed8
commit
df6f49da3e
1 changed files with 1 additions and 1 deletions
2
main.js
2
main.js
|
@ -83,7 +83,7 @@ async function main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sudo) {
|
if (sudo) {
|
||||||
cmd.unshift("sudo", "env", `PATH=${process.env.PATH}`)
|
cmd.unshift("sudo", "-E", "env", `PATH=${process.env.PATH}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
process.env.ANSIBLE_FORCE_COLOR = "True"
|
process.env.ANSIBLE_FORCE_COLOR = "True"
|
||||||
|
|
Loading…
Reference in a new issue