1
0
Fork 0
mirror of https://github.com/dawidd6/action-ansible-playbook.git synced 2024-11-21 23:19:24 +00:00

main: preserve env - sudo

This commit is contained in:
Dawid Dziurla 2021-07-26 18:32:34 +02:00 committed by GitHub
parent 95ac226ed8
commit df6f49da3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,7 +83,7 @@ async function main() {
}
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"