-
Notifications
You must be signed in to change notification settings - Fork 178
40 lines (34 loc) · 961 Bytes
/
codegen.yml
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
38
39
40
name: Codegen
on:
push:
branches:
- main
pull_request:
branches:
- main
# When pushing to a PR, cancel any jobs still running for the previous head commit of the PR
concurrency:
# head_ref is only defined for pull requests, run_id is always unique and defined so if this
# workflow was not triggered by a pull request, nothing gets cancelled.
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
check-git-consistency:
name: Check for uncommitted changes
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Regen openapi libs
run: ./regen_openapi.py
- name: Check for uncommitted changes
run: |
gs=$(git status -s)
if [[ -n "$gs" ]]; then
echo 'there are uncommitted changes!'
git status
exit 1
else
echo 'all good.'
fi