File tree Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 47
47
- name : " Build and Publish CodeQL Packs"
48
48
env :
49
49
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
50
+ PACKS : ${{ matrix.packs }}
50
51
run : |
51
- PACK_PATH="${{ matrix.packs } }/qlpack.yml"
52
+ PACK_PATH="${PACKS }/qlpack.yml"
52
53
CURRENT_VERSION=$(grep version $PACK_PATH | awk '{print $2}')
53
54
PACK_FULLNAME=$(cat $PACK_PATH | grep "name:" | awk '{print $2}')
54
55
PACK_NAME=$(echo $PACK_FULLNAME | awk -F '/' '{print $2}')
Original file line number Diff line number Diff line change @@ -27,10 +27,12 @@ jobs:
27
27
steps :
28
28
- name : Set matrix
29
29
id : set-matrix
30
+ env :
31
+ VERSIONS : ${{ inputs.versions }}
30
32
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 "," -)
34
36
echo "matrix :: [$matrix]"
35
37
echo "matrix=[$matrix]" >> "$GITHUB_OUTPUT"
36
38
71
73
fi
72
74
73
75
- name : Run linting
76
+ env :
77
+ TOOL : ${{ inputs.tool }}
74
78
run : |
75
79
set -e
76
- TOOL="${{ inputs.tool }}"
77
80
if [[ "$TOOL" == "ruff" ]]; then
78
81
pip install ruff
79
82
ruff check
Original file line number Diff line number Diff line change @@ -20,10 +20,12 @@ jobs:
20
20
steps :
21
21
- name : Set matrix
22
22
id : set-matrix
23
+ env :
24
+ VERSIONS : ${{ inputs.versions }}
23
25
run : |
24
- versions="${{ inputs.versions }}"
25
- echo "Version Input :: $versions "
26
- matrix=$(echo "$versions " | tr "," "\n" | awk '{print "\""$1"\""}' | paste -sd "," -)
26
+ set -e
27
+ echo "Version Input :: $VERSIONS "
28
+ matrix=$(echo "$VERSIONS " | tr "," "\n" | awk '{print "\""$1"\""}' | paste -sd "," -)
27
29
echo "matrix :: [$matrix]"
28
30
echo "matrix=[$matrix]" >> "$GITHUB_OUTPUT"
29
31
You can’t perform that action at this time.
0 commit comments