Skip to content

Commit 20f3d82

Browse files
authored
Add concurrency limit to smoke tests (#417)
1 parent 4785d12 commit 20f3d82

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/smoke.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@ on:
66
paths: 'task/**'
77
schedule:
88
- cron: '0 9 * * 1'
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
11+
cancel-in-progress: true
912
jobs:
1013
authorize:
11-
environment: ${{ github.event_name == 'schedule' && 'automatic' || 'manual' }}
14+
environment: ${{ (github.event_name == 'pull_request_target' &&
15+
github.event.pull_request.head.repo.full_name != github.repository) &&
16+
'manual' || 'automatic' }}
1217
runs-on: ubuntu-latest
1318
steps:
1419
- run: echo ✓
@@ -21,6 +26,7 @@ jobs:
2126
fail-fast: false
2227
matrix:
2328
provider: [AWS, AZ, GCP]
29+
concurrency: ${{ github.workflow }}-${{ matrix.provider }}
2430
env:
2531
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
2632
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
@@ -55,6 +61,7 @@ jobs:
5561
environment: automatic
5662
runs-on: ubuntu-latest
5763
timeout-minutes: 30
64+
concurrency: ${{ github.workflow }}-K8S
5865
env:
5966
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
6067
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}

0 commit comments

Comments
 (0)