Run shell commands
npm i nexrender-action-run-command -g
// job.json
{
"actions": {
"postrender": [
{
"module": "nexrender-action-run-command",
"command": "aws s3 cp {file} s3://bucket-name/ --profile profilename",
}
]
}
}
// job.json
{
"actions": {
"prerender": [
{
"module": "nexrender-action-run-command",
"command": "ls -al /path/to/some/directory",
}
]
}
}
This should be able to run most commands, but it hasn't been heavily tested. If you run into an issue, let me know.
command
required argument - file path of output file can be passed with{file}