fix: refresh api 호출 안하는 이슈 수정 #700
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Assign Random Reviewer | |
| on: | |
| pull_request: | |
| types: [opened, reopened, ready_for_review] | |
| jobs: | |
| assign_reviewer: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v3 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20 | |
| - uses: jwalton/gh-find-current-pr@v1 | |
| id: findPr | |
| with: | |
| state: open | |
| - name: Assign Reviewer | |
| run: node .github/actions/randomReviewer.js | |
| if: success() && steps.findPr.outputs.number | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITHUB_REPOSITORY: ${{ github.repository }} | |
| PR_NUMBER: ${{ steps.findPr.outputs.number }} |