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 Nov 12, 2024
1 parent fa1dcde commit 134d5a9
Show file tree
Hide file tree
Showing 2 changed files with 13 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
8 changes: 7 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ inputs:
token:
description: "CodSpeed upload token"
required: false
shell:
description: |
The shell to run commands in.
Warning: if you use defaults.run.shell, you must still set this parameter.
required: false
default: bash
run:
description: "The command to run the benchmarks"
required: true
Expand Down Expand Up @@ -40,7 +46,7 @@ inputs:
runs:
using: "composite"
steps:
- shell: bash
- shell: ${{ inputs.shell }}
run: |
# Configure and run codspeed-runner
Expand Down

0 comments on commit 134d5a9

Please sign in to comment.