From d1343b6968a709f4ad3af7639b46521b2e10e11b Mon Sep 17 00:00:00 2001 From: Cathal Mullan Date: Wed, 31 Jul 2024 21:08:22 +0100 Subject: [PATCH] feat: add support for custom shells --- README.md | 6 ++++++ action.yml | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1d96c11..b6c9e5e 100644 --- a/README.md +++ b/README.md @@ -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: "" diff --git a/action.yml b/action.yml index 98168fc..4677662 100644 --- a/action.yml +++ b/action.yml @@ -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 @@ -40,7 +46,7 @@ inputs: runs: using: "composite" steps: - - shell: bash + - shell: ${{ inputs.shell }} run: | # Configure and run codspeed-runner