Skip to content

Commit 6cc5f9a

Browse files
committed
BUILD/MINOR: github: run the CI only on PRs
1 parent 88aad5e commit 6cc5f9a

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: go build
2-
on: [push, pull_request]
2+
on:
3+
pull_request:
4+
branches:
5+
- master
36
jobs:
47

58
build:

.github/workflows/check.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Commit subject
2-
on: [pull_request]
2+
on:
3+
pull_request:
4+
branches:
5+
- master
36
jobs:
47
check:
58
runs-on: ubuntu-latest

.github/workflows/e2e.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: e2e
2-
on: [push, pull_request]
2+
on:
3+
pull_request:
4+
branches:
5+
- master
36
jobs:
47
build:
58
name: HAProxy

.github/workflows/lint.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: golangci-lint
2-
on: [push, pull_request]
2+
on:
3+
pull_request:
4+
branches:
5+
- master
36
jobs:
47
golangci-lint:
58
name: runner / golangci-lint
@@ -8,6 +11,6 @@ jobs:
811
- name: Check out code into the Go module directory
912
uses: actions/checkout@v1
1013
- name: golangci-lint
11-
uses: reviewdog/action-golangci-lint@v1
14+
uses: reviewdog/action-golangci-lint@v1
1215
with:
1316
github_token: ${{ secrets.github_token }}

0 commit comments

Comments
 (0)