chore: Setup build concurrency to reduce number of simultaneous builds on a PR

This commit is contained in:
Gerald Pinder 2024-03-09 12:29:33 -05:00
parent 2cbc07a33d
commit bf6ce3f650
2 changed files with 8 additions and 0 deletions

View file

@ -1,5 +1,9 @@
name: Earthly PR +build
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
on:
pull_request:

View file

@ -1,5 +1,9 @@
name: Earthly main branch +all
concurrency:
group: ${{ github.workflow }}-main
cancel-in-progress: true
on:
workflow_dispatch:
push: