Skip to content

Bash Command Lines for GitHub Actions

Actions
Runs Bash commands in an Action
v1.1.0
Latest
Star (7)

bash

Usage

Executes each command listed in the Action's args via bash -c.

action "Setup" {
  uses = "jdickey/bash@master"
  args = ["cat <<<$MY_VAR > file.csv"]
}

Acknowledgements

Based on jcblw/bash; the only difference is that he read argument values using "$@" rather than "$*". Using his original, multi-word commands such as docker-compose exec web bin/rake would need to be surrounded by quotes ('docker-compose exec web bin/rake').

Bash Command Lines for GitHub Actions is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Runs Bash commands in an Action
v1.1.0
Latest

Bash Command Lines for GitHub Actions is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.