Skip to content

Commit 88bb89e

Browse files
committed
build: address build failures when no changes have been made
1 parent cbbbe93 commit 88bb89e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/ideas_list.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,14 @@ jobs:
9292
# Push changes:
9393
- name: 'Push changes'
9494
run: |
95-
if [[ -z "$(git status --porcelain)" ]]; then
95+
# Stage all changes:
96+
git add -A
97+
98+
# Check whether anything actually changed...
99+
if git diff --cached --quiet; then
96100
# If no files were changed, nothing more to do:
97101
exit 0
98102
fi
99-
# Otherwise, add changed files to the staging area and commit:
100-
git add -A && git commit -m "feat: update ideas list"
101-
git push
103+
# Otherwise, commit and push the changes:
104+
git commit -m "feat: update ideas list" && git push
102105
timeout-minutes: 15

0 commit comments

Comments
 (0)