Skip to content

Commit 192a8c4

Browse files
authored
Update wiki.yml
1 parent f69054d commit 192a8c4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/wiki.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ jobs:
5252
- name: Check if there are changes
5353
id: changes
5454
run: |
55-
if [ -n "$(git status -s)" ]; then
55+
git add .
56+
57+
if git diff --cached --quiet; then
5658
echo "changed=true" >> $GITHUB_OUTPUT
5759
else
5860
echo "changed=false" >> $GITHUB_OUTPUT
@@ -61,7 +63,6 @@ jobs:
6163
- name: Add and commit files
6264
if: steps.changes.outputs.changed == 'true'
6365
run: |
64-
git add .
6566
git config --global user.email "github-actions[bot]@users.noreply.github.com"
6667
git config --global user.name "github-actions[bot]"
6768
git commit -m "Update submodules at $(date "+DATE: %Y-%m-%d TIME: %H:%M:%S")"

0 commit comments

Comments
 (0)