File tree Expand file tree Collapse file tree 6 files changed +35
-0
lines changed
templates/github/workflows Expand file tree Collapse file tree 6 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 12
12
description : ' New Ref'
13
13
required : true
14
14
15
+ # Cancel the workflow in progress in newer build is about to start.
16
+ concurrency :
17
+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
18
+ cancel-in-progress : true
19
+
15
20
env :
16
21
GO111MODULE : " on"
17
22
CACHE_BENCHMARK : " off" # Enables benchmark result reuse between runs, may skew latency results.
Original file line number Diff line number Diff line change 2
2
name : cloc
3
3
on :
4
4
pull_request :
5
+
6
+ # Cancel the workflow in progress in newer build is about to start.
7
+ concurrency :
8
+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
9
+ cancel-in-progress : true
10
+
5
11
jobs :
6
12
cloc :
7
13
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 8
8
- master
9
9
- main
10
10
pull_request :
11
+
12
+ # Cancel the workflow in progress in newer build is about to start.
13
+ concurrency :
14
+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
15
+ cancel-in-progress : true
16
+
11
17
jobs :
12
18
golangci :
13
19
name : golangci-lint
Original file line number Diff line number Diff line change 2
2
name : gorelease
3
3
on :
4
4
pull_request :
5
+
6
+ # Cancel the workflow in progress in newer build is about to start.
7
+ concurrency :
8
+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
9
+ cancel-in-progress : true
10
+
5
11
env :
6
12
GO_VERSION : 1.17.x
7
13
jobs :
Original file line number Diff line number Diff line change 6
6
- master
7
7
- main
8
8
pull_request :
9
+
10
+ # Cancel the workflow in progress in newer build is about to start.
11
+ concurrency :
12
+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
13
+ cancel-in-progress : true
14
+
9
15
env :
10
16
GO111MODULE : " on"
11
17
RUN_BASE_COVERAGE : " on" # Runs test for PR base in case base test coverage is missing.
Original file line number Diff line number Diff line change 6
6
- master
7
7
- main
8
8
pull_request :
9
+
10
+ # Cancel the workflow in progress in newer build is about to start.
11
+ concurrency :
12
+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
13
+ cancel-in-progress : true
14
+
9
15
env :
10
16
GO111MODULE : " on"
11
17
RUN_BASE_COVERAGE : " on" # Runs test for PR base in case base test coverage is missing.
You can’t perform that action at this time.
0 commit comments