Skip to content

Commit 48e3112

Browse files
author
Josh
committed
Fix lint action
1 parent f831370 commit 48e3112

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/lint.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
name: Lint
22

33
on:
4-
workflow_call: { }
5-
push:
6-
branches:
7-
- main
4+
workflow_call:
5+
inputs:
6+
lint_proto:
7+
type: boolean
8+
default: true
9+
lint_go:
10+
type: boolean
11+
default: true
812

913
jobs:
1014
lint_proto:
1115
name: Lint Proto
1216
runs-on: ubuntu-latest
17+
if: ${{ inputs.lint_proto }}
1318
steps:
1419
- uses: actions/checkout@v3
1520
- uses: bufbuild/buf-setup-action@v1
@@ -24,6 +29,7 @@ jobs:
2429
lint_go:
2530
name: Lint Go
2631
runs-on: ubuntu-latest
32+
if: ${{ inputs.lint_go }}
2733
steps:
2834
- uses: actions/checkout@v3
2935
- uses: actions/setup-go@v3

0 commit comments

Comments
 (0)