1
0
Fork 0
mirror of https://github.com/dawidd6/action-ansible-playbook.git synced 2024-12-23 04:37:29 +00:00

post: change directory if saved

This commit is contained in:
Dawid Dziurla 2020-05-14 20:16:43 +02:00 committed by GitHub
parent 83c93acd55
commit 89ee60634c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)