mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2024-11-22 15:32:18 +00:00
post: change directory if saved
This commit is contained in:
parent
83c93acd55
commit
89ee60634c
1 changed files with 4 additions and 0 deletions
4
post.js
4
post.js
|
@ -8,10 +8,14 @@ function rm(file) {
|
|||
|
||||
async function main() {
|
||||
try {
|
||||
const directory = core.getState("directory")
|
||||
const keyFile = core.getState("keyFile")
|
||||
const inventoryFile = core.getState("inventoryFile")
|
||||
const vaultPasswordFile = core.getState("vaultPasswordFile")
|
||||
|
||||
if (directory)
|
||||
process.chdir(directory)
|
||||
|
||||
if (keyFile)
|
||||
rm(keyFile)
|
||||
|
||||
|
|
Loading…
Reference in a new issue