Skip to content

Commit e881dc1

Browse files
committed
Proper script
1 parent 09e3a02 commit e881dc1

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/pull-request.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,15 @@ jobs:
2222
run: |
2323
UPDATED_APPS=$(git diff --name-only HEAD | grep source/apps)
2424
25-
echo '```json' > results.txt
26-
source/generate.py app-test $UPDATED_APPS >> results.txt
27-
echo '```' >> results.txt
25+
if [ -n "$UPDATED_APPS" ]; then
26+
echo '```json' > results.txt
27+
source/generate.py app-test $UPDATED_APPS >> results.txt
28+
if [ $? -eq 0 ]; then
29+
echo '```' >> results.txt
30+
else
31+
rm results.txt
32+
fi
33+
fi
2834
2935
- name: Comment results
3036
uses: thollander/actions-comment-pull-request@v3

0 commit comments

Comments
 (0)