Skip to content

Commit 721ab9f

Browse files
authored
fix(ci) Update python-linting
1 parent e711de2 commit 721ab9f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/python-linting.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ jobs:
2727
steps:
2828
- name: Set matrix
2929
id: set-matrix
30+
env:
31+
VERSIONS: ${{ inputs.versions }}
3032
run: |
31-
versions="${{ inputs.versions }}"
32-
echo "Version Input :: $versions"
33-
matrix=$(echo "$versions" | tr "," "\n" | awk '{print "\""$1"\""}' | paste -sd "," -)
33+
set -e
34+
echo "Version Input :: $VERSIONS"
35+
matrix=$(echo "$VERSIONS" | tr "," "\n" | awk '{print "\""$1"\""}' | paste -sd "," -)
3436
echo "matrix :: [$matrix]"
3537
echo "matrix=[$matrix]" >> "$GITHUB_OUTPUT"
3638
@@ -71,9 +73,10 @@ jobs:
7173
fi
7274
7375
- name: Run linting
76+
env:
77+
TOOL: ${{ inputs.tool }}
7478
run: |
7579
set -e
76-
TOOL="${{ inputs.tool }}"
7780
if [[ "$TOOL" == "ruff" ]]; then
7881
pip install ruff
7982
ruff check

0 commit comments

Comments
 (0)