Skip to content

Commit

Permalink
chore: update choosing reviewers
Browse files Browse the repository at this point in the history
  • Loading branch information
stardustmeg committed Apr 25, 2024
1 parent 05e9c6c commit a4724b0
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,13 @@ jobs:
echo "Potential Reviewers: ${potential_reviewers[@]}"
# Select the first reviewer from the potential reviewers list
first_reviewer="${potential_reviewers[0]}"
echo "::set-output name=first_reviewer::${first_reviewer}"
if [[ ${#potential_reviewers[@]} -gt 0 ]]; then
# Select the first reviewer from the potential reviewers list
first_reviewer="${potential_reviewers[0]}"
echo "::set-output name=first_reviewer::${first_reviewer}"
else
echo "No potential reviewers found."
fi
- name: Debug First Reviewer
run: |
Expand All @@ -82,10 +85,13 @@ jobs:
echo "Potential Reviewers: ${potential_reviewers[@]}"
# Select the second reviewer from the potential reviewers list
second_reviewer="${potential_reviewers[0]}"
echo "::set-output name=second_reviewer::${second_reviewer}"
if [[ ${#potential_reviewers[@]} -gt 0 ]]; then
# Select the second reviewer from the potential reviewers list
second_reviewer="${potential_reviewers[0]}"
echo "::set-output name=second_reviewer::${second_reviewer}"
else
echo "No potential reviewers found."
fi
- name: Debug Second Reviewer
run: |
Expand Down

0 comments on commit a4724b0

Please sign in to comment.