I have a GitHub action that essentially is a bash script. The javascript portion of my action executes a bash script:
const core = require("@actions/core");
const exec = require("@actions/exec");
async function run() {
try {
// Execute bash script
await exec.exec(`${__dirname}/my-action-script.sh`);
} catch (error) {
core.setFailed(error.message);
}
}
run();
For now, this action will communicate with other actions by leaving files on the file system. This is an "invisible" way of communication and I would like to fill my action.yml
with outputs. How can I enable my-action-script.sh
to return me outputs defined in my action.yml
?