Skip to content

Commit

Permalink
Add codegen check workflow
Browse files Browse the repository at this point in the history
Make sure that the generated clients are up to date.
  • Loading branch information
afritzler committed Apr 12, 2022
1 parent e18eff0 commit 8940417
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/check-codegen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Check Codegen

on:
pull_request:
paths-ignore:
- 'docs/**'
- '**/*.md'

jobs:
check-codegen:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- name: Run make generate
run: make generate
- name: Check if there are changes
id: changes
uses: UnicornGlobal/has-changes-action@v1.0.11
- name: Process changes
if: steps.changes.outputs.changed == 1
run: echo "Please run 'make generate' and commit the generated code."

0 comments on commit 8940417

Please sign in to comment.