mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2024-11-21 23:19:24 +00:00
main: pass PATH to sudo
This commit is contained in:
parent
03f941b221
commit
163a4d1959
1 changed files with 1 additions and 1 deletions
2
main.js
2
main.js
|
@ -83,7 +83,7 @@ async function main() {
|
|||
}
|
||||
|
||||
if (sudo) {
|
||||
cmd.unshift("sudo")
|
||||
cmd.unshift("sudo", "env", `PATH=${process.env.PATH}`)
|
||||
}
|
||||
|
||||
process.env.ANSIBLE_FORCE_COLOR = "True"
|
||||
|
|
Loading…
Reference in a new issue