Skip to content

Commit 983bc0a

Browse files
authored
Fix CI build and execute it on master branch
1 parent e2f5778 commit 983bc0a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: build
22

33
on:
4+
push:
5+
branches:
6+
- master
47
pull_request:
58
branches:
69
- '*'

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ release: ## goreleaser --snapshot --skip-publish --rm-dist
6565
diff: ## git diff
6666
$(call print-target)
6767
git diff --exit-code
68-
test -z "`git status --porcelain | tee /dev/tty`"
68+
test -z "`git status --porcelain`" || (git status --porcelain && exit 1)
6969

7070
.PHONY: docker
7171
docker: ## run in golang container, example: make docker run="make all"

0 commit comments

Comments
 (0)