Skip to content

Commit 5b62e9a

Browse files
committed
Add concurrency settings and update permissions in workflow files
1 parent d02eba6 commit 5b62e9a

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ env:
66
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
77
BUILD_TYPE: Release
88

9+
concurrency:
10+
group: ${{ github.head_ref || github.run_id }}
11+
cancel-in-progress: true
12+
13+
permissions: read-all
14+
915
jobs:
1016
# macos:
1117
# name: macos / clang

.github/workflows/code-quality.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ on:
55
branches: [main, master, develop]
66
pull_request:
77
branches: [main, master, develop]
8-
permissions:
9-
contents: read
8+
9+
concurrency:
10+
group: ${{ github.head_ref || github.run_id }}
11+
cancel-in-progress: true
12+
13+
permissions: read-all
1014

1115
jobs:
1216
code-quality:

.github/workflows/npm-release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
paths:
1010
- 'libCacheSim-node/**'
1111

12+
concurrency:
13+
group: ${{ github.head_ref || github.run_id }}
14+
cancel-in-progress: true
15+
1216
env:
1317
BUILD_TYPE: Release
1418

0 commit comments

Comments
 (0)