Execute a command and store its output
Required The command to run.
The shell used to run command.
The output of the command written to stdout.
The output of the command written to stderr.
steps:
- id: command
uses: phogolabs/ci-exec@main
continue-on-error: true
with:
run: cat unknown.txt
- run: Command Success
run: echo ${{ steps.cmd.outputs.stdout }}
- run: Command Failure
run: echo ${{ steps.cmd.outputs.stderr }}