We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b014145 commit 867b32bCopy full SHA for 867b32b
.github/workflows/build.yml
@@ -264,7 +264,19 @@ jobs:
264
./objdiff report changes artifacts/previous.json artifacts/progress.json -o artifacts/changes.json
265
./ok --changes artifacts/changes.json pr > pr.txt
266
cat pr.txt
267
+
268
+ - name: Verify OK Bot Comment is Not Empty
269
+ id: comment_file_check
270
+ run: |
271
+ FILE_PATH="pr.txt"
272
+ if [ -s "$FILE_PATH" ]; then
273
+ echo "file_empty=false" >> $GITHUB_OUTPUT
274
+ else
275
+ echo "file_empty=true" >> $GITHUB_OUTPUT
276
+ fi
277
278
- name: PR comment with file
279
+ if: ${{ steps.comment_file_check.outputs.file_empty == 'false' }}
280
uses: thollander/actions-comment-pull-request@v3
281
with:
282
github-token: ${{ secrets.GITHUB_TOKEN }}
0 commit comments