Skip to content

Commit 68a93a7

Browse files
authored
Update files-changed.yml
1 parent c01b7e5 commit 68a93a7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/files-changed.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,13 @@ jobs:
6767
ls -la
6868
git config --local user.name 'github-actions[bot]'
6969
git config --local user.email 'github-actions[bot]@users.noreply.github.com'
70-
if ! git diff-index --quiet HEAD; then
70+
git diff-index HEAD
71+
if git diff-index --quiet HEAD; then
72+
echo "No changes to commit"
73+
else
7174
git add README.md
7275
git commit -m "Update README.md"
73-
git push
74-
else
75-
echo "No changes to commit"
76+
git push
7677
fi
7778
env:
7879
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)