xref: /expo/.github/workflows/code-review.yml (revision bfcd021e)
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: [main, sdk-*]
11
12concurrency:
13  group: ${{ github.workflow }}-${{ github.event.inputs.pullNumber || github.event.number }}
14  cancel-in-progress: true
15
16jobs:
17  code_review:
18    runs-on: ubuntu-20.04
19    timeout-minutes: 30
20    steps:
21      - name: �� Checkout
22        uses: actions/checkout@v3
23      - name: ➕ Add `bin` to GITHUB_PATH
24        run: echo "$(pwd)/bin" >> $GITHUB_PATH
25      - name: ♻️ Restore caches
26        uses: ./.github/actions/expo-caches
27        with:
28          yarn-tools: 'true'
29      - name: �� Reviewing a pull request
30        run: expotools code-review --pr ${{ github.event.inputs.pullNumber || github.event.number }}
31        env:
32          GITHUB_TOKEN: ${{ secrets.EXPO_BOT_GITHUB_TOKEN }}
33