Skip to content

Commit 3620a54

Browse files
committed
ci: stop final-check when the comment lookup fails
Without pipefail a failed gh api call in the lookup pipeline left its error body in $id, and the step then sent it to PATCH as a comment id.
1 parent b727cd7 commit 3620a54

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎.github/workflows/final-check.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
GH_TOKEN: ${{ secrets.TECHENGINEBOT_TOKEN }}
5252
REPO: ${{ github.repository }}
5353
PR: ${{ github.event.pull_request.number }}
54+
shell: bash # -eo pipefail: a failed lookup must stop here, not feed an error body into PATCH
5455
run: |
5556
# Bot account only: never fall back to a personal token.
5657
if [ -z "$GH_TOKEN" ]; then

0 commit comments

Comments
 (0)