Skip to content

Commit 0e5911b

Browse files
authored
Attempt fixing capture traces by making the traces file unique among multi-environment tests (DataDog#21094)
* Attempt fixing capture traces by making the traces file unique among multi-environment tests * Fix path for artifacts update
1 parent 3e0c91a commit 0e5911b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/test-target.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ jobs:
121121
- name: Set environment variables with sanitized paths
122122
run: |
123123
# We want to replace leading dots as they will make directories hidden, which will cause them to be ignored by upload-artifact and EnricoMi/publish-unit-test-result-action
124-
JOB_NAME=$(echo "${{ inputs.job-name }}" | sed 's/^\./Dot/')
124+
JOB_NAME=$(echo "${{ inputs.job-name }}${{ inputs.target-env && format('-{0}', inputs.target-env) || '' }}" | sed 's/^\./Dot/')
125125
126126
echo "TEST_RESULTS_DIR=$TEST_RESULTS_BASE_DIR/$JOB_NAME" >> $GITHUB_ENV
127127
echo "TRACE_CAPTURE_FILE=$TRACE_CAPTURE_BASE_DIR/$JOB_NAME" >> $GITHUB_ENV

0 commit comments

Comments
 (0)