There was an error while loading. Please reload this page.
2 parents fc0c851 + 3e29708 commit cd626efCopy full SHA for cd626ef
1 file changed
.github/workflows/lint.yml
@@ -34,8 +34,12 @@ jobs:
34
| grep -E '\.(cpp|h)$' \
35
| grep -v '/translations/' \
36
|| true)
37
- COUNT=$(echo "$SRC_FILES" | grep -c . || echo 0)
38
- echo "count=$COUNT" >> $GITHUB_OUTPUT
+ if [ -z "$SRC_FILES" ]; then
+ COUNT=0
39
+ else
40
+ COUNT=$(echo "$SRC_FILES" | grep -c .)
41
+ fi
42
+ echo "count=${COUNT}" >> "$GITHUB_OUTPUT"
43
if [ "$COUNT" = "0" ]; then
44
echo "No changed source files to check."
45
exit 0
0 commit comments