Skip to content
This repository was archived by the owner on Oct 6, 2026. It is now read-only.

Commit 62d7507

Browse files
committed
fix: correct syntax for checking team reviewers in workflow
1 parent aae25e0 commit 62d7507

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

‎.github/workflows/slack-notify-doc-review.yml‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,18 @@ jobs:
1616
echo "All requested teams:"
1717
echo '${{ toJSON(github.event.pull_request.requested_teams) }}' | jq -r '.[].slug'
1818
19+
- name: Check if docs-prs is requested
20+
id: check_team
21+
run: |
22+
TEAMS='${{ toJSON(github.event.pull_request.requested_teams) }}'
23+
if echo "$TEAMS" | jq -e '.[] | select(.slug == "docs-prs")' > /dev/null; then
24+
echo "send_notification=true" >> $GITHUB_OUTPUT
25+
else
26+
echo "send_notification=false" >> $GITHUB_OUTPUT
27+
fi
28+
1929
- name: Send Slack notification
20-
if: contains(fromJSON(toJSON(github.event.pull_request.requested_teams.*.slug)), 'docs-prs')
30+
if: steps.check_team.outputs.send_notification == 'true' || github.event.requested_team.slug == 'docs-prs'
2131
env:
2232
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_DOC_REVIEW_WEBHOOK_URL }}
2333
PR_TITLE: ${{ github.event.pull_request.title }}

0 commit comments

Comments
 (0)