Skip to content

Commit 029301a

Browse files
authored
Fix CI failing when no JSON files are found (#261)
1 parent 79396bd commit 029301a

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/app-ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
persist-credentials: false
9393
- name: 🚀 Run JQ
9494
run: |
95-
shopt -s globstar
95+
shopt -s globstar nullglob
9696
for file in **/*.json; do
9797
if ! jq '.' "$file" > /dev/null 2>&1; then
9898
echo "::error file=${file}::Invalid JSON in ${file}"

.github/workflows/base-ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
persist-credentials: false
7575
- name: 🚀 Run JQ
7676
run: |
77-
shopt -s globstar
77+
shopt -s globstar nullglob
7878
for file in **/*.json; do
7979
if ! jq '.' "$file" > /dev/null 2>&1; then
8080
echo "::error file=${file}::Invalid JSON in ${file}"

.github/workflows/repository-lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
persist-credentials: false
2020
- name: 🚀 Run JQ
2121
run: |
22-
shopt -s globstar
22+
shopt -s globstar nullglob
2323
for file in **/*.json; do
2424
if ! jq '.' "$file" > /dev/null 2>&1; then
2525
echo "::error file=${file}::Invalid JSON in ${file}"

0 commit comments

Comments
 (0)