Skip to content

Commit

Permalink
feat(action): add mongo-uri-env-name input
Browse files Browse the repository at this point in the history
  • Loading branch information
adriencaccia committed Dec 7, 2023
1 parent 98f4853 commit 7e6284a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ inputs:
default: "2.0.2"
required: true

mongo-uri-env-name:
description: "The name of the environment variable containing the MongoDB URI, will activate the MongoDB Instrumentation feature"
default: "MONGO_URI"
required: false

runs:
using: "composite"
steps:
Expand All @@ -46,6 +51,11 @@ runs:
RUNNER_ARGS="$RUNNER_ARGS --upload-url=${{ inputs.upload-url }}"
fi
# Set the runner env variables
if [ -n "${{ inputs.mongo-uri-env-name }}" ]; then
export CODSPEED_MONGO_INSTR_URI_ENV_NAME=${{ inputs.mongo-uri-env-name }}
fi
# Install the CodSpeedHQ/runner
cargo install --git https://github.com/CodSpeedHQ/runner --branch feat/integrate-mongo-tracer
Expand Down

0 comments on commit 7e6284a

Please sign in to comment.