ci: Run make-gen-detla in github action (#2980)

pull/2981/head
Timothy Messier 3 years ago committed by GitHub
parent 5c19dba3c9
commit 96ab199562
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,36 @@
name: "make-gen-delta"
on:
- workflow_dispatch
- push
- workflow_call
jobs:
make-gen-delta:
name: "Check for uncommited changes from make gen"
runs-on: ${{ fromJSON(vars.RUNNER) }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Determine Go version
id: get-go-version
# We use .go-version as our source of truth for current Go
# version, because "goenv" can react to it automatically.
run: |
echo "Building with Go $(cat .go-version)"
echo "::set-output name=go-version::$(cat .go-version)"
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "${{ steps.get-go-version.outputs.go-version }}"
- name: Install Dependencies
run: |
make tools
- name: Running make gen
run: |
make gen
- name: Check for changes
run: |
git diff --exit-code
git status --porcelain
test -z "$(git status --porcelain)"
Loading…
Cancel
Save