Skip to content

Commit 5ddab5d

Browse files
fix: correct environment variable usage in linting result checks
1 parent f5ef7ff commit 5ddab5d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ inputs:
2828
mypy_options:
2929
description: The mypy options to pass to mypy.
3030
required: false
31-
31+
3232
badge-directory:
3333
description: Directory to save the generated SVG badges. Defaults to .github/badges.
3434
required: false
@@ -83,7 +83,7 @@ runs:
8383

8484
- name: Report Pylint results
8585
run: |
86-
if [ "${{ env.PYLINT_EXIT_CODE }}" == "0" ]; then
86+
if [ "$PYLINT_EXIT_CODE" == "0" ]; then
8787
if [ -z "$(cat pylint_output.txt)" ]; then
8888
echo "::notice file=action.yml,line=70::No linting issues found."
8989
echo "No linting issues found." > pylint_output.txt
@@ -118,7 +118,7 @@ runs:
118118

119119
- name: Report Black results
120120
run: |
121-
if [ "${{ env.BLACK_EXIT_CODE }}" == "0" ]; then
121+
if [ "$BLACK_EXIT_CODE" == "0" ]; then
122122
if [ -z "$(cat black_output.txt)" ]; then
123123
echo "::notice file=action.yml,line=97::No code formatting issues found."
124124
echo "No code formatting issues found." > black_output.txt
@@ -156,7 +156,7 @@ runs:
156156

157157
- name: Report MyPy results
158158
run: |
159-
if [ "${{ env.MYPY_EXIT_CODE }}" == "0" ]; then
159+
if [ "$MYPY_EXIT_CODE" == "0" ]; then
160160
if [ -z "$(cat mypy_output.txt)" ]; then
161161
echo "::notice file=action.yml,line=115::No type checking issues found."
162162
else

0 commit comments

Comments
 (0)