Skip to content

Commit 9641fd7

Browse files
committed
pr-comment: Comment instructions instead of failing
1 parent 0a4f015 commit 9641fd7

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/pr-comment.yml

+9-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,16 @@ jobs:
2323
ref: ${{ github.event.pull_request.head.sha }}
2424

2525
- if: steps.wait-for-build.outputs.conclusion != 'success'
26-
run: exit 1
26+
run: |
27+
tee comment << EOF
28+
Build checks have not completed. Possible reasons for this are:
29+
1. The checks need to be approved by a maintainer
30+
2. The branch has conflicts
31+
3. The firmware build has failed
32+
EOF
2733
28-
- name: Download artifact
34+
- if: steps.wait-for-build.outputs.conclusion == 'success'
35+
name: Download artifact
2936
uses: dawidd6/action-download-artifact@bd10f381a96414ce2b13a11bfa89902ba7cea07f
3037
with:
3138
workflow: main.yml
@@ -39,7 +46,6 @@ jobs:
3946
with:
4047
issue-number: ${{ github.event.pull_request.number }}
4148
comment-author: 'github-actions[bot]'
42-
body-includes: Build size and comparison to
4349

4450
- name: Create or update comment
4551
uses: peter-evans/create-or-update-comment@5adcb0bb0f9fb3f95ef05400558bdb3f329ee808

0 commit comments

Comments
 (0)