filipebarros / run-command

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Run Command Action

This action runs a command and saves its output on a new step variable.

Inputs

command

Command to run on the docker image

result

Variable where to store the result

- uses: filipebarros/run-command@master
  id: command
  with:
    command: echo "${{ github.event.comment.body }}" | cut -d ' ' -f2
    result: environment
- name: Access the new variable
  run: |
    echo "Variable: ${{ steps.command.outputs.environment }}"

About

License:MIT License


Languages

Language:Dockerfile 78.8%Language:Shell 21.2%