Skip to content

Commit f4d9c61

Browse files
committed
Fix missing environment info in case of a failure
1 parent 9d4fbed commit f4d9c61

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/public-analyze-code-graph.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ jobs:
7979
if: inputs.artifacts-upload-name == '' && inputs.sources-upload-name == ''
8080
run: echo "Please specify either the input parameter 'artifacts-upload-name' or 'sources-upload-name'."; exit 1
8181

82+
- name: Assemble ENVIRONMENT_INFO
83+
run: echo "ENVIRONMENT_INFO=-java-${{ matrix.java }}-python-${{ matrix.python }}-miniforge-${{ matrix.miniforge }}" >> $GITHUB_ENV
84+
8285
- name: (Code Analysis Setup) Checkout code-graph-analysis-pipeline
8386
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
8487
with:
@@ -166,9 +169,6 @@ jobs:
166169
IMPORT_GIT_LOG_DATA_IF_SOURCE_IS_PRESENT: "" # Options: "none", "aggregated", "full". default = "plugin" or ""
167170
run: |
168171
TYPESCRIPT_SCAN_HEAP_MEMORY=${{ inputs.typescript-scan-heap-memory }} ./../../scripts/analysis/analyze.sh ${{ inputs.analysis-arguments }}
169-
170-
- name: Assemble ENVIRONMENT_INFO
171-
run: echo "ENVIRONMENT_INFO=-java-${{ matrix.java }}-python-${{ matrix.python }}-miniforge-${{ matrix.miniforge }}" >> $GITHUB_ENV
172172
173173
- name: Set artifact name for uploaded analysis results
174174
id: set-analysis-results-artifact-name

0 commit comments

Comments
 (0)