Skip to content

Commit

Permalink
chore(CI): update review request set
Browse files Browse the repository at this point in the history
  update review request set

Log: 更新检查review人员设置
  • Loading branch information
kuchune authored and myml committed Jul 18, 2024
1 parent ce95dca commit 3ea7dc4
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/debian-check-post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,17 @@ jobs:
installationId: app_installation.data.id
});
core.setOutput('app_token', token)
- id: get-reviewer
run: |
reviewer_list=("liujianqiang-niu" "lzyprime" "heysion" "mangosteens")
random_index=$(($RANDOM % ${#reviewer_list[@]}))
random_value=${reviewer_list[$random_index]}
echo "reviewer=$random_value" >> "$GITHUB_OUTPUT"
- name: Run assignment of reviewer team
id: add-reviewer-team
continue-on-error: true
if: hashFiles('comment.txt')
uses: ryaugusta/pr-add-reviewers-action@v1
with:
token: ${{ steps.get-token.outputs.app_token }}
reviewers: ${{ steps.get-reviewer.outputs.reviewer }}
team_reviewers: Package-admins
- name: Run assignment of reviewers
if: ${{ hashFiles('comment.txt') && steps.add-reviewer-team.outcome == 'failure' }}
uses: ryaugusta/pr-add-reviewers-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
reviewers: liujianqiang-niu

0 comments on commit 3ea7dc4

Please sign in to comment.