Skip to content

Commit 8d4fa18

Browse files
committed
fix: break long lines in quality-checks.yml to pass yamllint
1 parent a3f0a4d commit 8d4fa18

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/quality-checks.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,10 @@ jobs:
100100
fi
101101
done
102102
# Validate label structure
103-
LABEL_ERRORS=$(jq '[.labels[] | select(.name == null or .color == null or .description == null)] | length' config/baseline.json)
103+
JQ_FILTER='[.labels[] | select(
104+
.name == null or .color == null or .description == null
105+
)] | length'
106+
LABEL_ERRORS=$(jq "$JQ_FILTER" config/baseline.json)
104107
if [ "$LABEL_ERRORS" -gt 0 ]; then
105108
echo "ERROR: $LABEL_ERRORS labels missing required fields (name, color, description)"
106109
ERRORS=$((ERRORS + LABEL_ERRORS))
@@ -122,7 +125,10 @@ jobs:
122125
- name: Install zizmor
123126
run: |
124127
ZIZMOR_VERSION="1.23.1"
125-
curl -sL "https://github.com/woodruffw/zizmor/releases/download/v${ZIZMOR_VERSION}/zizmor-x86_64-unknown-linux-gnu.tar.gz" -o /tmp/zizmor.tar.gz
128+
ZIZMOR_BASE="https://github.com/woodruffw/zizmor/releases"
129+
ZIZMOR_TAR="zizmor-x86_64-unknown-linux-gnu.tar.gz"
130+
curl -sL "${ZIZMOR_BASE}/download/v${ZIZMOR_VERSION}/${ZIZMOR_TAR}" \
131+
-o /tmp/zizmor.tar.gz
126132
mkdir -p /tmp/zizmor-extract
127133
tar -xzf /tmp/zizmor.tar.gz -C /tmp/zizmor-extract
128134
find /tmp/zizmor-extract -name zizmor -type f -exec sudo mv {} /usr/local/bin/zizmor \;
@@ -161,7 +167,9 @@ jobs:
161167
VALE_VERSION: "3.13.1"
162168
run: |
163169
tmpdir="$(mktemp -d)"
164-
wget -q "https://github.com/errata-ai/vale/releases/download/v${VALE_VERSION}/vale_${VALE_VERSION}_Linux_64-bit.tar.gz"
170+
VALE_BASE="https://github.com/errata-ai/vale/releases"
171+
VALE_TAR="vale_${VALE_VERSION}_Linux_64-bit.tar.gz"
172+
wget -q "${VALE_BASE}/download/v${VALE_VERSION}/${VALE_TAR}"
165173
tar xzf "vale_${VALE_VERSION}_Linux_64-bit.tar.gz" -C "$tmpdir" vale
166174
sudo mv "$tmpdir/vale" /usr/local/bin/vale
167175

0 commit comments

Comments
 (0)