Skip to content

Commit

Permalink
Concurrently run GitHub-Action workflows on different branches
Browse files Browse the repository at this point in the history
  • Loading branch information
Or-Geva committed Sep 6, 2022
1 parent bf66a5a commit e64d247
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/accessTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
# Ensures that only the latest commit is running for each PR at a time.
# Ignores this rule for push events.
concurrency:
group: ${{ github.event.pull_request.number || github.sha }}-access
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-{{ github.ref }}
cancel-in-progress: true
jobs:
Access-Tests:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: "Static Analysis"
on: [push, pull_request]
concurrency:
group: ${{ github.event.pull_request.number || github.sha }}-static-check
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-{{ github.ref }}
cancel-in-progress: true
jobs:
Go-Lint:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/artifactoryTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
# Ensures that only the latest commit is running for each PR at a time.
# Ignores this rule for push events.
concurrency:
group: ${{ github.event.pull_request.number || github.sha }}-artifactory
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-{{ github.ref }}
cancel-in-progress: true
jobs:
Artifactory-Tests:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/distributionTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
# Ensures that only the latest commit is running for each PR at a time.
# Ignores this rule for push events.
concurrency:
group: ${{ github.event.pull_request.number || github.sha }}-distribution
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-{{ github.ref }}
cancel-in-progress: true
jobs:
Distribution-Tests:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dockerTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
# Ensures that only the latest commit is running for each PR at a time.
# Ignores this rule for push events.
concurrency:
group: ${{ github.event.pull_request.number || github.sha }}-docker
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-{{ github.ref }}
cancel-in-progress: true
jobs:
Docker-tests:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/goTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
# Ensures that only the latest commit is running for each PR at a time.
# Ignores this rule for push events.
concurrency:
group: ${{ github.event.pull_request.number || github.sha }}-go
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-{{ github.ref }}
cancel-in-progress: true
jobs:
GO-tests:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gradleTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
# Ensures that only the latest commit is running for each PR at a time.
# Ignores this rule for push events.
concurrency:
group: ${{ github.event.pull_request.number || github.sha }}-gradle
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-{{ github.ref }}
cancel-in-progress: true
jobs:
Gradle-Tests:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mavenTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
# Ensures that only the latest commit is running for each PR at a time.
# Ignores this rule for push events.
concurrency:
group: ${{ github.event.pull_request.number || github.sha }}-maven
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-{{ github.ref }}
cancel-in-progress: true
jobs:
Maven-Tests:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npmTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
# Ensures that only the latest commit is running for each PR at a time.
# Ignores this rule for push events.
concurrency:
group: ${{ github.event.pull_request.number || github.sha }}-npm
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-{{ github.ref }}
cancel-in-progress: true
jobs:
npm-Tests:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nugetTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
# Ensures that only the latest commit is running for each PR at a time.
# Ignores this rule for push events.
concurrency:
group: ${{ github.event.pull_request.number || github.sha }}-nuget
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-{{ github.ref }}
cancel-in-progress: true
jobs:
NuGet-Tests:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pluginsTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
# Ensures that only the latest commit is running for each PR at a time.
# Ignores this rule for push events.
concurrency:
group: ${{ github.event.pull_request.number || github.sha }}-plugins
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-{{ github.ref }}
cancel-in-progress: true
jobs:
Plugins-Tests:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pythonTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
# Ensures that only the latest commit is running for each PR at a time.
# Ignores this rule for push events.
concurrency:
group: ${{ github.event.pull_request.number || github.sha }}-python
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-{{ github.ref }}
cancel-in-progress: true
jobs:
Python-Tests:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/removeLabel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
# Ensures that only the latest commit is running for each PR at a time.
# Ignores this rule for push events.
concurrency:
group: ${{ github.event.pull_request.number || github.sha }}-remove-label
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-{{ github.ref }}
cancel-in-progress: true
jobs:
Remove-Label:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scriptTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: [push, pull_request]
# Ensures that only the latest commit is running for each PR at a time.
# Ignores this rule for push events.
concurrency:
group: ${{ github.event.pull_request.number || github.sha }}-script
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-{{ github.ref }}
cancel-in-progress: true
jobs:
Scripts-tests:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/transferTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
# Ensures that only the latest commit is running for each PR at a time.
# Ignores this rule for push events.
concurrency:
group: ${{ github.event.pull_request.number || github.sha }}-transfer
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-{{ github.ref }}
cancel-in-progress: true
jobs:
Transfer-Tests:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/xrayTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
# Ensures that only the latest commit is running for each PR at a time.
# Ignores this rule for push events.
concurrency:
group: ${{ github.event.pull_request.number || github.sha }}-xray
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-{{ github.ref }}
cancel-in-progress: true
jobs:
CLI-Tests:
Expand Down

0 comments on commit e64d247

Please sign in to comment.