File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,14 @@ jobs:
163
163
cp -r "$target_path_old_version/." .
164
164
165
165
# Add all files and commit
166
- git add -A || true && git commit -m "Automatic commit" || true
166
+ git add -A || true
167
+
168
+ if git commit -m "Automatic commit"; then
169
+ echo "Commit successful"
170
+ else
171
+ echo "No changes"
172
+ return
173
+ fi
167
174
168
175
# Remove everything except the .git folder
169
176
for i in $(ls | grep -v ".git") ; do rm -rf "$i"; done;
@@ -172,7 +179,14 @@ jobs:
172
179
cp -r "$target_path_new_version/." .
173
180
174
181
# Add all files and commit
175
- git add -A || true && git commit -m "Automatic commit" || true
182
+ git add -A || true
183
+
184
+ if git commit -m "Automatic commit"; then
185
+ echo "Commit successful"
186
+ else
187
+ echo "No changes"
188
+ return
189
+ fi
176
190
177
191
# echo diff
178
192
echo $(git diff HEAD~)
You can’t perform that action at this time.
0 commit comments