MOBILE-4497 github: Add concurrency to cancel previous ongoing pushes

main
Pau Ferrer Ocaña 2024-02-29 17:21:25 +01:00
parent f5d31d8eb4
commit 64d692aec2
2 changed files with 9 additions and 0 deletions

View File

@ -16,6 +16,11 @@ on:
pull_request:
branches: [ main, v*.x ]
concurrency:
group: acceptance-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
build:

View File

@ -2,6 +2,10 @@ name: Testing
on: [push, pull_request]
concurrency:
group: testing-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
test: