forked from volcano-sh/agentcube
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 783 Bytes
/
Copy pathcodegen-check.yml
File metadata and controls
37 lines (32 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Codegen Check
on:
pull_request:
branches:
- main
- "release-*"
jobs:
codegen-check:
name: Codegen Check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Filter paths
id: changes
uses: dorny/paths-filter@v3
with:
filters: |
codegen:
- 'pkg/apis/**'
- 'hack/**'
- '.github/workflows/**'
- 'Makefile'
- name: Set up Go
if: steps.changes.outputs.codegen == 'true'
uses: actions/setup-go@v5
with:
go-version: "1.24.4"
- name: Verify Generated Code
if: steps.changes.outputs.codegen == 'true'
run: |
make gen-check