We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e79bc9 commit 00f182bCopy full SHA for 00f182b
.github/workflows/go-generate-check.yml
@@ -10,7 +10,6 @@ jobs:
10
uses: actions/setup-go@v2
11
with:
12
go-version: ^1.16
13
-
14
- name: Check out code into the Go module directory
15
uses: actions/checkout@v2
16
- name: Install deps
@@ -40,7 +39,12 @@ jobs:
40
39
id: git-check
41
run: |
42
if ! git diff-index --quiet HEAD --; then
+ echo "changes_exist=true" >> $GITHUB_ENV
43
git status
44
45
- core.setFailed('Please run \"go generate ./...\" to update codebase')
46
- fi
+ fi
+ - name: Check coverage tolerance
+ if: env.changes_exist == 'true'
47
+ uses: actions/github-script@v3
48
+ with:
49
+ script: |
50
+ core.setFailed("Please run 'go generate ./...' to update codebase")
0 commit comments