| 1 | name: Concurrency |
| 2 | on: |
| 3 | pull_request: |
| 4 | types: [opened, synchronize, reopened, ready_for_review] |
| 5 | concurrency: |
| 6 | group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} |
| 7 | cancel-in-progress: true |
| 8 | jobs: |
| 9 | lint: |
| 10 | runs-on: ubuntu-latest |
| 11 | concurrency: lint-${{ github.ref }} |
| 12 | steps: |
| 13 | - run: echo lint |
| 14 | deploy-preview: |
| 15 | runs-on: ubuntu-latest |
| 16 | concurrency: |
| 17 | group: preview-${{ github.head_ref }} |
| 18 | cancel-in-progress: ${{ github.event.action != 'closed' }} |
| 19 | steps: |
| 20 | - run: echo preview |