mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2024-12-27 10:36:09 -07:00
post: change directory if saved
This commit is contained in:
parent
83c93acd55
commit
89ee60634c
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 New Issue
Block a user