File tree 3 files changed +24
-6
lines changed
3 files changed +24
-6
lines changed Original file line number Diff line number Diff line change 23
23
- name : Generate Golang + Chi application
24
24
run : ../../src/cli.js --lang go
25
25
working-directory : examples/go
26
- - name : Check whether files were modified
27
- run : git status --short
26
+ - name : Check whether all modified files have been committed
27
+ run : >-
28
+ MODIFIED_FILES="$(git status --short)"
29
+ if [ -n "$MODIFIED_FILES" ]; then
30
+ echo >&2 "ERROR: the following generated files have not been committed:"
31
+ echo >&2 "$MODIFIED_FILES"
32
+ exit 1
33
+ fi
Original file line number Diff line number Diff line change 23
23
- name : Generate JavaScript + Express application
24
24
run : ../../src/cli.js --lang js
25
25
working-directory : examples/js
26
- - name : Check whether files were modified
27
- run : git status --short
26
+ - name : Check whether all modified files have been committed
27
+ run : >-
28
+ MODIFIED_FILES="$(git status --short)"
29
+ if [ -n "$MODIFIED_FILES" ]; then
30
+ echo >&2 "ERROR: the following generated files have not been committed:"
31
+ echo >&2 "$MODIFIED_FILES"
32
+ exit 1
33
+ fi
Original file line number Diff line number Diff line change 23
23
- name : Generate Python + FastAPI application
24
24
run : ../../src/cli.js --lang python
25
25
working-directory : examples/python
26
- - name : Check whether files were modified
27
- run : git status --short
26
+ - name : Check whether all modified files have been committed
27
+ run : >-
28
+ MODIFIED_FILES="$(git status --short)"
29
+ if [ -n "$MODIFIED_FILES" ]; then
30
+ echo >&2 "ERROR: the following generated files have not been committed:"
31
+ echo >&2 "$MODIFIED_FILES"
32
+ exit 1
33
+ fi
You can’t perform that action at this time.
0 commit comments