Skip to content

Commit

Permalink
ci: finalize check gen
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsenta committed Jul 2, 2024
1 parent cedc0d9 commit 37c6142
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/go-check-gen.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: Make gen and Check Diff
name: Make gen and check diff

on:
push:
branches:
- main
pull_request:
branches:
- main
push:
branches: ["master"]
workflow_dispatch:

jobs:
check-diff:
Expand All @@ -19,7 +17,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.18'
go-version: '1.21'

- name: Install dependencies
run: go mod download
Expand All @@ -29,10 +27,4 @@ jobs:

- name: Check for changes
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
if ! git diff --exit-code; then
echo "Code generation resulted in changes. Please commit the changes." >&2
exit 1
fi
git diff --exit-code

0 comments on commit 37c6142

Please sign in to comment.