@@ -16,40 +16,41 @@ steps:
16
16
with :
17
17
upload-database : false
18
18
- shell : bash
19
+ env :
20
+ CPP_DB : ${{ fromJson(steps.analysis.outputs.db-locations).cpp }}
21
+ CSHARP_DB : ${{ fromJson(steps.analysis.outputs.db-locations).csharp }}
22
+ GO_DB : ${{ fromJson(steps.analysis.outputs.db-locations).go }}
23
+ JAVA_DB : ${{ fromJson(steps.analysis.outputs.db-locations).java }}
24
+ JAVASCRIPT_DB : ${{ fromJson(steps.analysis.outputs.db-locations).javascript }}
25
+ PYTHON_DB : ${{ fromJson(steps.analysis.outputs.db-locations).python }}
19
26
run : |
20
- CPP_DB="${{ fromJson(steps.analysis.outputs.db-locations).cpp }}"
21
- if [[ ! -d "$CPP_DB" ]] || [[ ! "$CPP_DB" == "${RUNNER_TEMP}/customDbLocation/cpp" ]]; then
27
+ if [[ ! -d "$CPP_DB" ]] || [[ "$CPP_DB" != "$RUNNER_TEMP/customDbLocation/cpp" ]]; then
22
28
echo "::error::Did not create a database for CPP, or created it in the wrong location." \
23
- "Expected location was '${ RUNNER_TEMP} /customDbLocation/cpp' but actual was '${CPP_DB}'"
29
+ "Expected location was '$RUNNER_TEMP/customDbLocation/cpp' but actual was '${CPP_DB}'"
24
30
exit 1
25
31
fi
26
- CSHARP_DB="${{ fromJson(steps.analysis.outputs.db-locations).csharp }}"
27
- if [[ ! -d "$CSHARP_DB" ]] || [[ ! "$CSHARP_DB" == "${RUNNER_TEMP}/customDbLocation/csharp" ]]; then
32
+ if [[ ! -d "$CSHARP_DB" ]] || [[ "$CSHARP_DB" != "$RUNNER_TEMP/customDbLocation/csharp" ]]; then
28
33
echo "::error::Did not create a database for C Sharp, or created it in the wrong location." \
29
- "Expected location was '${ RUNNER_TEMP} /customDbLocation/csharp' but actual was '${CSHARP_DB}'"
34
+ "Expected location was '$RUNNER_TEMP/customDbLocation/csharp' but actual was '${CSHARP_DB}'"
30
35
exit 1
31
36
fi
32
- GO_DB="${{ fromJson(steps.analysis.outputs.db-locations).go }}"
33
- if [[ ! -d "$GO_DB" ]] || [[ ! "$GO_DB" == "${RUNNER_TEMP}/customDbLocation/go" ]]; then
37
+ if [[ ! -d "$GO_DB" ]] || [[ "$GO_DB" != "$RUNNER_TEMP/customDbLocation/go" ]]; then
34
38
echo "::error::Did not create a database for Go, or created it in the wrong location." \
35
- "Expected location was '${ RUNNER_TEMP} /customDbLocation/go' but actual was '${GO_DB}'"
39
+ "Expected location was '$RUNNER_TEMP/customDbLocation/go' but actual was '${GO_DB}'"
36
40
exit 1
37
41
fi
38
- JAVA_DB="${{ fromJson(steps.analysis.outputs.db-locations).java }}"
39
- if [[ ! -d "$JAVA_DB" ]] || [[ ! "$JAVA_DB" == "${RUNNER_TEMP}/customDbLocation/java" ]]; then
42
+ if [[ ! -d "$JAVA_DB" ]] || [[ "$JAVA_DB" != "$RUNNER_TEMP/customDbLocation/java" ]]; then
40
43
echo "::error::Did not create a database for Java, or created it in the wrong location." \
41
- "Expected location was '${ RUNNER_TEMP} /customDbLocation/java' but actual was '${JAVA_DB}'"
44
+ "Expected location was '$RUNNER_TEMP/customDbLocation/java' but actual was '${JAVA_DB}'"
42
45
exit 1
43
46
fi
44
- JAVASCRIPT_DB="${{ fromJson(steps.analysis.outputs.db-locations).javascript }}"
45
- if [[ ! -d "$JAVASCRIPT_DB" ]] || [[ ! "$JAVASCRIPT_DB" == "${RUNNER_TEMP}/customDbLocation/javascript" ]]; then
47
+ if [[ ! -d "$JAVASCRIPT_DB" ]] || [[ "$JAVASCRIPT_DB" != "$RUNNER_TEMP/customDbLocation/javascript" ]]; then
46
48
echo "::error::Did not create a database for Javascript, or created it in the wrong location." \
47
- "Expected location was '${ RUNNER_TEMP} /customDbLocation/javascript' but actual was '${JAVASCRIPT_DB}'"
49
+ "Expected location was '$RUNNER_TEMP/customDbLocation/javascript' but actual was '${JAVASCRIPT_DB}'"
48
50
exit 1
49
51
fi
50
- PYTHON_DB="${{ fromJson(steps.analysis.outputs.db-locations).python }}"
51
- if [[ ! -d "$PYTHON_DB" ]] || [[ ! "$PYTHON_DB" == "${RUNNER_TEMP}/customDbLocation/python" ]]; then
52
+ if [[ ! -d "$PYTHON_DB" ]] || [[ "$PYTHON_DB" != "$RUNNER_TEMP/customDbLocation/python" ]]; then
52
53
echo "::error::Did not create a database for Python, or created it in the wrong location." \
53
- "Expected location was '${ RUNNER_TEMP} /customDbLocation/python' but actual was '${PYTHON_DB}'"
54
+ "Expected location was '$RUNNER_TEMP/customDbLocation/python' but actual was '${PYTHON_DB}'"
54
55
exit 1
55
56
fi
0 commit comments