Skip to content

phogolabs/ci-exec

Repository files navigation

ci-exec

Execute a command and store its output

Inputs

run

Required The command to run.

shell

The shell used to run command.

Outputs

stdout

The output of the command written to stdout.

stderr

The output of the command written to stderr.

Example usage

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 }}

About

GitHub Action that executes a command and return it's output

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published