Skip to content

Commit 867b32b

Browse files
authored
CI: Allow PRs with empty progress reports to pass CI (#678)
1 parent b014145 commit 867b32b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,19 @@ jobs:
264264
./objdiff report changes artifacts/previous.json artifacts/progress.json -o artifacts/changes.json
265265
./ok --changes artifacts/changes.json pr > pr.txt
266266
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+
267278
- name: PR comment with file
279+
if: ${{ steps.comment_file_check.outputs.file_empty == 'false' }}
268280
uses: thollander/actions-comment-pull-request@v3
269281
with:
270282
github-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)