@@ -30,10 +30,10 @@ jobs:
3030 id : fetch-soup-files
3131 shell : bash
3232 run : |
33- JSON_FILES=$(git diff --name-only --diff-filter=AM "origin/$BASE_BRANCH" -- soups/**/*.json || true)
33+ JSON_FILES=$(git diff --name-only --diff-filter=AM "origin/$BASE_BRANCH" -- . soups/**/*.json || true)
3434 if [ -z "$JSON_FILES" ]; then
35- echo "::error:: No JSON files changed in this PR"
36- exit 1
35+ echo "No JSON files changed in this PR"
36+ exit 0
3737 fi
3838
3939 echo "Found JSON files in PR: $JSON_FILES"
@@ -168,9 +168,9 @@ jobs:
168168 done
169169
170170 if [ "$APPROVER_FOUND" = false ]; then
171- echo "❌ $APPROVED_BY is not in the allowed approvers list: $ALLOWED_APPROVERS"
171+ echo "::error:: ❌ $APPROVED_BY is not in the allowed approvers list: $ALLOWED_APPROVERS"
172172 echo "Approval will not be recorded."
173- exit 0
173+ exit 1
174174 fi
175175
176176 echo "✅ $APPROVED_BY is authorized to approve soups"
@@ -180,7 +180,7 @@ jobs:
180180
181181 APPROVED_ON=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
182182
183- for FILE in $JSON_FILES ; do
183+ for FILE in $SOUP_FILES ; do
184184 if [ ! -f "$FILE" ]; then
185185 echo "File $FILE not found, skipping"
186186 continue
@@ -204,6 +204,6 @@ jobs:
204204 exit 0
205205 fi
206206
207- git add soups/*.json
207+ git add . soups/*.json
208208 git commit -m "Update approval information: approved by ${{ github.event.review.user.login }}"
209209 git push origin HEAD
0 commit comments