1name: Code Review 2 3on: 4 workflow_dispatch: 5 inputs: 6 pullNumber: 7 description: 'Number of the pull request to review' 8 required: true 9 pull_request_target: 10 branches: [master, sdk-*] 11 12concurrency: 13 group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} 14 cancel-in-progress: true 15 16jobs: 17 code_review: 18 runs-on: ubuntu-18.04 19 steps: 20 - name: Checkout 21 uses: actions/checkout@v2 22 - name: ♻️ Restore node modules in tools 23 uses: actions/cache@v2 24 id: tools-modules-cache 25 with: 26 path: tools/node_modules 27 key: ${{ runner.os }}-tools-modules-${{ hashFiles('tools/yarn.lock') }} 28 restore-keys: | 29 ${{ runner.os }}-tools-modules- 30 - name: Reviewing a pull request 31 run: bin/expotools code-review --pr ${{ github.event.inputs.pullNumber || github.event.number }} 32 env: 33 GITHUB_TOKEN: ${{ secrets.EXPO_BOT_GITHUB_TOKEN }} 34