Skip to content

Commit 8d52453

Browse files
authored
Merge pull request #178 from puja-trivedi/issue177_update_generate_formats_wf
Replace the current git diff check with git diff --cached --quiet
2 parents fe3cad2 + bcb194e commit 8d52453

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/reusable-generate_other_formats.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
git add models_py-autogen/${name}.py
100100
git add erdiagram-autogen/${name}.md
101101
done
102-
if ! git diff --quiet HEAD; then
102+
if ! git diff --cached --quiet; then
103103
git commit -m "generate another formats for ${models_list} model(s)"
104104
if git pull --rebase; then
105105
git push

0 commit comments

Comments
 (0)