Skip to content

Commit

Permalink
github/workflows: configure concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
fsouza committed Jan 9, 2023
1 parent a9d1615 commit f4b75f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/docker-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref_name != 'main' }}

jobs:
test-dockerfile:
name: test-dockerfile
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref_name != 'main' }}

jobs:
test:
strategy:
Expand Down

0 comments on commit f4b75f5

Please sign in to comment.