|
63 | 63 | if: inputs.requirements-file != '' && steps.setup-python.outcome == 'success' |
64 | 64 | run: | |
65 | 65 | echo "::notice file=action.yml,line=60::Installing additional requirements from ${{ inputs.requirements-file }}" |
66 | | - if [[ test -f "${{ inputs.requirements-file }}" ]]; then |
| 66 | + if [ test -r "${{ inputs.requirements-file }}" ]; then |
67 | 67 | pip3 install -r "${{ inputs.requirements-file }}" 2>&1 | tee requirements_output.txt && echo "::notice file=action.yml,line=61::Additional requirements installation completed." || { echo "::error file=action.yml,line=62::Additional requirements installation failed."; exit 1; } |
68 | 68 | else |
69 | 69 | echo "::warning file=action.yml,line=63::Requirements file not found: ${{ inputs.requirements-file }}" |
@@ -246,7 +246,7 @@ runs: |
246 | 246 | id: run-mypy |
247 | 247 | if: steps.install-linting-tools.outcome == 'success' && always() |
248 | 248 | run: | |
249 | | - if [ -z "${{ inputs.mypy_options }}" ]; then |
| 249 | + if [[ -z "${{ inputs.mypy_options }}" ]]; then |
250 | 250 | echo "::notice file=action.yml,line=105::No MyPy options provided, using default." |
251 | 251 | mypy . 2>&1 | tee mypy_output.txt |
252 | 252 | else |
@@ -306,10 +306,9 @@ runs: |
306 | 306 | - name: Generate SVG Badges |
307 | 307 | id: generate-badges |
308 | 308 | if: steps.install-linting-tools.outcome == 'success' && always() |
309 | | - run: | |
310 | | - echo "::notice file=action.yml,line=167::Creating badges directory ${{ inputs.badge-directory }}/ if it does not exist." |
311 | | - if [[ test -d "${{ inputs.badge-directory }}" ]]; then |
312 | | - echo "::notice file=action.yml,line=170::Badge directory already exists." |
| 309 | + run: | |
| 310 | + if [ test -d "${{ inputs.badge-directory }}" ]; then |
| 311 | + echo "::notice file=action.yml,line=170::Badge directory exists: ${{ inputs.badge-directory }}" |
313 | 312 | else |
314 | 313 | echo "::notice file=action.yml,line=172::Badge directory does not exist. Creating it now." |
315 | 314 | mkdir -p "${{ inputs.badge-directory }}" && echo "::notice file=action.yml,line=174::Badge directory created successfully." || { echo "::error file=action.yml,line=175::Failed to create badge directory."; exit 1; } |
|
0 commit comments