mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2024-12-28 02:56: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() {
|
async function main() {
|
||||||
try {
|
try {
|
||||||
|
const directory = core.getState("directory")
|
||||||
const keyFile = core.getState("keyFile")
|
const keyFile = core.getState("keyFile")
|
||||||
const inventoryFile = core.getState("inventoryFile")
|
const inventoryFile = core.getState("inventoryFile")
|
||||||
const vaultPasswordFile = core.getState("vaultPasswordFile")
|
const vaultPasswordFile = core.getState("vaultPasswordFile")
|
||||||
|
|
||||||
|
if (directory)
|
||||||
|
process.chdir(directory)
|
||||||
|
|
||||||
if (keyFile)
|
if (keyFile)
|
||||||
rm(keyFile)
|
rm(keyFile)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user