diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 877fb5d0..33ac32cf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,11 +1,14 @@ name: Build -on: [push] +on: + - pull_request permissions: contents: read - # Optional: allow read access to pull request. Use with `only-new-issues` option. - # pull-requests: read + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true jobs: test: