Skip to content

Commit e81a9f3

Browse files
authored
Update cmd.bash
Skip push if only the meta file has been changed
1 parent 49b1a32 commit e81a9f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

updater/cmd.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ if [ "$COMMIT_AND_PUSH" = 'true' ]; then
5151
git add data
5252
git config user.name "$COMMIT_NAME"
5353
git config user.email "$COMMIT_EMAIL"
54-
if ! git commit -m "$COMMIT_MESSAGE"; then
54+
if [ -z "$(git status --porcelain | grep -v 'data/api/v2/meta/index.json')" ]; then
5555
echo "The generated data doesn't bring any updates"
5656
exit 2
5757
fi

0 commit comments

Comments
 (0)