Skip to content

Commit b4d8393

Browse files
committed
fix: add disable cilint input options
1 parent 9c549f5 commit b4d8393

File tree

5 files changed

+37
-3
lines changed

5 files changed

+37
-3
lines changed

.github/workflows/cloud-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
with:
4444
push_image: true
4545
push_image_tag: ${{ inputs.tag }}
46+
disable_cilint: true
4647
secrets: inherit
4748

4849
release-frontends:
@@ -59,6 +60,7 @@ jobs:
5960
with:
6061
push_image: true
6162
push_image_tag: ${{ inputs.tag }}
63+
disable_cilint: true
6264
secrets: inherit
6365

6466
release-webhook:
@@ -67,6 +69,7 @@ jobs:
6769
with:
6870
push_image: true
6971
push_image_tag: ${{ inputs.tag }}
72+
disable_cilint: true
7073
secrets: inherit
7174

7275
release-cloud:

.github/workflows/controllers.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
default: "latest"
1414
required: false
1515
type: string
16+
disable_cilint:
17+
description: "Disable golangci-lint"
18+
default: false
19+
required: false
20+
type: boolean
1621
workflow_dispatch:
1722
inputs:
1823
push_image:
@@ -25,6 +30,11 @@ on:
2530
default: "latest"
2631
required: false
2732
type: string
33+
disable_cilint:
34+
description: "Disable golangci-lint"
35+
default: false
36+
required: false
37+
type: boolean
2838
push:
2939
branches: ["main"]
3040
paths:
@@ -63,7 +73,7 @@ jobs:
6373
run: bash scripts/resolve-modules.sh ./controllers
6474

6575
golangci-lint:
66-
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' }}
76+
if: ${{ !inputs.disable_cilint && (github.event_name == 'push' || github.event_name == 'pull_request') }}
6777
needs: [resolve-modules]
6878
runs-on: ubuntu-24.04
6979
strategy:

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
USERNAME: ${{ github.repository_owner }}
5151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5252
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
53+
5354
cloud-release:
5455
uses: ./.github/workflows/cloud-release.yml
5556
needs:

.github/workflows/services.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
default: "latest"
1414
required: false
1515
type: string
16+
disable_cilint:
17+
description: "Disable golangci-lint"
18+
default: false
19+
required: false
20+
type: boolean
1621
workflow_dispatch:
1722
inputs:
1823
push_image:
@@ -25,6 +30,11 @@ on:
2530
default: "latest"
2631
required: false
2732
type: string
33+
disable_cilint:
34+
description: "Disable golangci-lint"
35+
default: false
36+
required: false
37+
type: boolean
2838
push:
2939
branches: ["main"]
3040
paths:
@@ -61,7 +71,7 @@ jobs:
6171
run: bash scripts/resolve-modules.sh ./service
6272

6373
golangci-lint:
64-
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' }}
74+
if: ${{ !inputs.disable_cilint && (github.event_name == 'push' || github.event_name == 'pull_request') }}
6575
needs: [resolve-modules]
6676
runs-on: ubuntu-24.04
6777
strategy:

.github/workflows/webhooks.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
default: "latest"
1414
required: false
1515
type: string
16+
disable_cilint:
17+
description: "Disable golangci-lint"
18+
default: false
19+
required: false
20+
type: boolean
1621
workflow_dispatch:
1722
inputs:
1823
push_image:
@@ -25,6 +30,11 @@ on:
2530
default: "latest"
2631
required: false
2732
type: string
33+
disable_cilint:
34+
description: "Disable golangci-lint"
35+
default: false
36+
required: false
37+
type: boolean
2838
push:
2939
branches: [ "main" ]
3040
paths:
@@ -62,7 +72,7 @@ jobs:
6272
run: bash ./scripts/resolve-modules.sh ./webhooks
6373

6474
golangci-lint:
65-
if: ${{ github.event_name == 'push' || github.event_name == 'pull_request' }}
75+
if: ${{ !inputs.disable_cilint && (github.event_name == 'push' || github.event_name == 'pull_request') }}
6676
needs: [ resolve-modules ]
6777
runs-on: ubuntu-24.04
6878
strategy:

0 commit comments

Comments
 (0)