Skip to content

Commit

Permalink
feat: add support for custom shells
Browse files Browse the repository at this point in the history
  • Loading branch information
CathalMullan committed Jul 31, 2024
1 parent 86517f4 commit e8d09c6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ GitHub Actions for running [CodSpeed](https://codspeed.io) in your CI.
# If you're instrumenting a public repository, you can omit this value
token: ""

# [OPTIONAL]
# The shell to run commands in.
# Defaults to bash.
# ⚠️ WARNING: if you use `defaults.run.shell`, you must still set this parameter.
shell: ""

# [REQUIRED]
# The command used to run your codspeed benchmarks
run: ""
Expand Down
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ inputs:
token:
description: "CodSpeed upload token"
required: false
shell:
description: "The shell to run commands in"
required: false
default: bash
run:
description: "The command to run the benchmarks"
required: true
Expand Down Expand Up @@ -40,7 +44,7 @@ inputs:
runs:
using: "composite"
steps:
- shell: bash
- shell: ${{ inputs.shell }}
run: |
# Configure and run codspeed-runner
Expand Down

0 comments on commit e8d09c6

Please sign in to comment.