Skip to content

Commit 7ab89b8

Browse files
committed
fix: disable validation for renovate user
1 parent 5d3b329 commit 7ab89b8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/validate-pr-content.lib.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,15 @@ jobs:
1111
- name: Validate PR content
1212
run: |
1313
PR_BODY=$(jq -r .pull_request.body "$GITHUB_EVENT_PATH")
14+
PR_USER=$(jq -r .pull_request.user.login "$GITHUB_EVENT_PATH")
1415
echo "DEBUG: PR_BODY content is: $PR_BODY"
16+
echo "DEBUG: PR_USER is: $PR_USER"
17+
18+
if [ "$PR_USER" = "renovate" ]; then
19+
echo "Validation skipped for user: $PR_USER"
20+
exit 0
21+
fi
22+
1523
REQUIRED_SECTIONS=("\\*\\*What this PR does / why we need it\\*\\*:" "\\*\\*Release note\\*\\*:")
1624
1725
for SECTION in "${REQUIRED_SECTIONS[@]}"; do

0 commit comments

Comments
 (0)