test-action-debian-package/post.js

22 lines
446 B
JavaScript
Raw Normal View History

2020-12-09 22:07:13 +00:00
const core = require("@actions/core")
const exec = require("@actions/exec")
async function main() {
try {
const container = core.getState("container")
core.saveState("container", "")
if (container) {
await exec.exec("docker", [
"rm",
"--force",
container
])
}
} catch (error) {
core.setFailed(error.message)
}
}
main()