diff --git a/action.yml b/action.yml index 0d966f1..e8d45c8 100644 --- a/action.yml +++ b/action.yml @@ -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: @@ -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