From 6049e6e5fb8a8114d10d589b634b889fdff8f3fe Mon Sep 17 00:00:00 2001 From: Damien Mathieu <42@dmathieu.com> Date: Mon, 28 Aug 2023 13:44:17 +0200 Subject: [PATCH] add option to specify BENCHMARK_RUN (#11498) --- .github/workflows/benchmarks.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index 35876cd4908..01d6d721bc4 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -16,6 +16,10 @@ on: description: 'Set the number of agents to send data to the APM Server' required: false type: string + benchmarkRun: + description: 'Set the expression that matches the benchmark scenarios to run' + required: false + type: string schedule: - cron: '0 17 * * *' @@ -59,6 +63,9 @@ jobs: if [ ! -z "${{ inputs.benchmarkAgents }}" ]; then echo "BENCHMARK_AGENTS=${{ inputs.benchmarkAgents }}" >> "$GITHUB_ENV" fi + if [ ! -z "${{ inputs.benchmarkRun }}" ]; then + echo "BENCHMARK_RUN=${{ inputs.benchmarkRun }}" >> "$GITHUB_ENV" + fi - uses: hashicorp/vault-action@v2.6.0 env: