Skip to content

Commit b7c02ad

Browse files
authored
Merge pull request shirou#1799 from mmorel-35/worflows-concurrency
chore: reduce number of executed jobs
2 parents bcd0dfa + f04c791 commit b7c02ad

File tree

7 files changed

+52
-16
lines changed

7 files changed

+52
-16
lines changed

.github/workflows/build_test.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1-
on: [push, pull_request]
21
name: Build Test
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
313
permissions:
414
contents: read
515

.github/workflows/labeler.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: "Pull Request Labeler"
2+
23
on:
3-
- pull_request_target
4+
pull_request_target:
45

56
permissions:
67
contents: read
@@ -12,6 +13,6 @@ jobs:
1213
pull-requests: write # for actions/labeler to add labels to PRs
1314
runs-on: ubuntu-latest
1415
steps:
15-
- uses: actions/labeler@ac9175f8a1f3625fd0d4fb234536d26811351594 # v4.3.0
16-
with:
17-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
16+
- uses: actions/labeler@ac9175f8a1f3625fd0d4fb234536d26811351594 # v4.3.0
17+
with:
18+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/lint.yml

+6
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,14 @@ name: Golangci-lint
22

33
on:
44
push:
5+
branches:
6+
- master
57
pull_request:
68

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
713
permissions:
814
contents: read
915

.github/workflows/release.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
name: Release
2+
13
on:
24
schedule:
3-
- cron: '0 1 1 * *' # UTC 01:00 on the first day of the Month
5+
- cron: '0 1 1 * *' # UTC 01:00 on the first day of the Month
46

5-
name: Release
67
permissions:
78
contents: write
89

.github/workflows/sbom_generator.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,17 @@ name: SBOM Generator
22

33
on:
44
push:
5-
branches: [ "master" ]
6-
5+
branches:
6+
- master
77
workflow_dispatch:
88

99
permissions: read-all
1010

1111
jobs:
1212
build:
1313
runs-on: ubuntu-latest
14-
1514
steps:
1615
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
17-
1816
- uses: advanced-security/sbom-generator-action@6fe43abf522b2e7a19bc769aec1e6c848614b517 # v0.0.2
1917
id: sbom
2018
env:

.github/workflows/shellcheck.yml

+14-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1-
on: [push, pull_request]
21
name: Shellcheck
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
313
permissions:
414
contents: read
515

@@ -8,6 +18,6 @@ jobs:
818
name: Shellcheck
919
runs-on: ubuntu-latest
1020
steps:
11-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
12-
- name: Run ShellCheck
13-
uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 # v2.0.0
21+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
22+
- name: Run ShellCheck
23+
uses: ludeeus/action-shellcheck@00cae500b08a931fb5698e11e79bfbd38e612a38 # v2.0.0

.github/workflows/test.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1-
on: [push, pull_request]
21
name: Test
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
313
permissions:
414
contents: read
515

0 commit comments

Comments
 (0)