File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 6
6
paths : ' task/**'
7
7
schedule :
8
8
- cron : ' 0 9 * * 1'
9
+ concurrency :
10
+ group : ${{ github.workflow }}-${{ github.head_ref || github.ref }}
11
+ cancel-in-progress : true
9
12
jobs :
10
13
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' }}
12
17
runs-on : ubuntu-latest
13
18
steps :
14
19
- run : echo ✓
21
26
fail-fast : false
22
27
matrix :
23
28
provider : [AWS, AZ, GCP]
29
+ concurrency : ${{ github.workflow }}-${{ matrix.provider }}
24
30
env :
25
31
AZURE_CLIENT_ID : ${{ secrets.AZURE_CLIENT_ID }}
26
32
AZURE_CLIENT_SECRET : ${{ secrets.AZURE_CLIENT_SECRET }}
55
61
environment : automatic
56
62
runs-on : ubuntu-latest
57
63
timeout-minutes : 30
64
+ concurrency : ${{ github.workflow }}-K8S
58
65
env :
59
66
AZURE_CLIENT_ID : ${{ secrets.AZURE_CLIENT_ID }}
60
67
AZURE_CLIENT_SECRET : ${{ secrets.AZURE_CLIENT_SECRET }}
You can’t perform that action at this time.
0 commit comments