File tree Expand file tree Collapse file tree 3 files changed +24
-6
lines changed Expand file tree Collapse file tree 3 files changed +24
-6
lines changed Original file line number Diff line number Diff line change 2323 - name : Generate Golang + Chi application
2424 run : ../../src/cli.js --lang go
2525 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 2323 - name : Generate JavaScript + Express application
2424 run : ../../src/cli.js --lang js
2525 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 2323 - name : Generate Python + FastAPI application
2424 run : ../../src/cli.js --lang python
2525 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