Skip to content

Commit

Permalink
Try with shuf
Browse files Browse the repository at this point in the history
  • Loading branch information
sanmai committed Feb 17, 2024
1 parent 8ecf191 commit 82c64e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/autoapprove.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
run: |
gh pr review ${{ github.event.pull_request.html_url }} --approve --body "${LINES[RANDOM%${#LINES[@]}]}"
shuf -n1 -e ${LINES[@]} |
gh pr review ${{ github.event.pull_request.html_url }} --approve --body -

0 comments on commit 82c64e8

Please sign in to comment.