Skip to content

Commit a9468bd

Browse files
author
Teja Surisetty
committed
Updated processor to handle no change scenario
1 parent 1ee3cae commit a9468bd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/processor.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,9 @@ jobs:
4040
git config --global user.name "github-actions[bot]"
4141
git config --global user.email "github-actions[bot]@users.noreply.github.com"
4242
git add .
43-
git commit -m "Update mint.json with new OpenAPI data"
44-
git push origin main
43+
if git diff --cached --quiet; then
44+
echo "No changes to commit"
45+
else
46+
git commit -m "Update mint.json with new OpenAPI data"
47+
git push origin main
48+
fi

0 commit comments

Comments
 (0)