Skip to content

Commit

Permalink
ci: stop running jobs when pushing
Browse files Browse the repository at this point in the history
Co-authored-by: Alexandre Chau <dialexo@users.noreply.github.com>
  • Loading branch information
Thechi2000 and Alexandre Chau authored Aug 2, 2023
1 parent 3d3bee3 commit e869702
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ on:
pull_request:
branches: ["main"]

# abort running jobs if newer version is detected on same branch
concurrency:
group: ${{ github.head_ref || github.ref }}
cancel-in-progress: true

env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
Expand Down

0 comments on commit e869702

Please sign in to comment.