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 paths: 12 - packages/** 13 14concurrency: 15 group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} 16 cancel-in-progress: true 17 18jobs: 19 code_review: 20 runs-on: ubuntu-18.04 21 steps: 22 - name: Checkout 23 uses: actions/checkout@v2 24 - name: ♻️ Restore node modules in tools 25 uses: actions/cache@v2 26 id: tools-modules-cache 27 with: 28 path: tools/node_modules 29 key: ${{ runner.os }}-tools-modules-${{ hashFiles('tools/yarn.lock') }} 30 restore-keys: | 31 ${{ runner.os }}-tools-modules- 32 - name: Reviewing a pull request 33 run: bin/expotools code-review --pr ${{ github.event.inputs.pullNumber || github.event.number }} 34 env: 35 GITHUB_TOKEN: ${{ secrets.EXPO_BOT_GITHUB_TOKEN }} 36