mirror of
https://github.com/stan220/flathub.git
synced 2026-09-08 16:28:52 +00:00
pr-check: Pipe comment command to true
This commit is contained in:
@@ -253,7 +253,7 @@ jobs:
|
|||||||
&& ! comment_exists_any "$BUILD_SUCCESS_COMMENT" \
|
&& ! comment_exists_any "$BUILD_SUCCESS_COMMENT" \
|
||||||
&& [ "$(echo "$PR_COMMENTS" | grep -E -c 'Test build.*failed')" -gt 5 ]; then
|
&& [ "$(echo "$PR_COMMENTS" | grep -E -c 'Test build.*failed')" -gt 5 ]; then
|
||||||
echo "PR is blocked and too many failing builds. Locking"
|
echo "PR is blocked and too many failing builds. Locking"
|
||||||
gh pr comment "$PR_NUM" --body "$LOCKED_COMMENT"
|
gh pr comment "$PR_NUM" --body "$LOCKED_COMMENT" || true
|
||||||
gh pr lock "$PR_NUM" || true
|
gh pr lock "$PR_NUM" || true
|
||||||
fi
|
fi
|
||||||
if label_exists_any "awaiting-review" && [ "$PR_THREAD_COUNT" -gt 0 ]; then
|
if label_exists_any "awaiting-review" && [ "$PR_THREAD_COUNT" -gt 0 ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user