We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09e3a02 commit e881dc1Copy full SHA for e881dc1
.github/workflows/pull-request.yml
@@ -22,9 +22,15 @@ jobs:
22
run: |
23
UPDATED_APPS=$(git diff --name-only HEAD | grep source/apps)
24
25
- echo '```json' > results.txt
26
- source/generate.py app-test $UPDATED_APPS >> results.txt
27
- echo '```' >> results.txt
+ if [ -n "$UPDATED_APPS" ]; then
+ echo '```json' > results.txt
+ 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
34
35
- name: Comment results
36
uses: thollander/actions-comment-pull-request@v3
0 commit comments