Skip to content

Commit

Permalink
Update content strategy codeowner workflow to not rerun on future com…
Browse files Browse the repository at this point in the history
…mits (#44723)
  • Loading branch information
ethanpalm authored Oct 24, 2023
1 parent 2f8deb5 commit c559300
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/codeowners-content-strategy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,15 @@ jobs:
env:
GH_TOKEN: ${{ secrets.DOCS_BOT_PAT_WRITEORG_PROJECT }}
PR: ${{ github.event.pull_request.html_url }}
run: gh pr edit $PR --add-reviewer github/docs-content-strategy
run: |
has_reviewer=$(
gh pr view $PR --json reviews |
jq 'any(.reviews[]; select(length > 0))'
)
if ! $has_reviewer
then
gh pr edit $PR --add-reviewer github/docs-content-strategy
fi
- uses: ./.github/actions/slack-alert
with:
Expand Down

0 comments on commit c559300

Please sign in to comment.