Skip to content

Commit 297416f

Browse files
committed
Update wiki action
1 parent 968acfe commit 297416f

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

.github/workflows/wiki.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,7 @@ jobs:
5151

5252
- name: Check if there are changes
5353
id: changes
54-
run: |
55-
if [ -n "$(git status -s)" ]; then
56-
echo "changed=true" >> $GITHUB_OUTPUT
57-
else
58-
echo "changed=false" >> $GITHUB_OUTPUT
59-
fi
54+
run: echo "changed=$([ -n \"$(git status -s)\" ] && echo true || echo false)" >> $GITHUB_OUTPUT
6055

6156
- name: Add and commit files
6257
if: ${{ steps.changes.outputs.changed == 'true' }}
@@ -72,9 +67,3 @@ jobs:
7267
with:
7368
github_token: ${{ github.token }}
7469
branch: ${{ github.ref_name }}
75-
76-
- name: Git Submodule Update
77-
run: |
78-
git pull --recurse-submodules
79-
git submodule update --init --recursive
80-
git submodule update --recursive --remote

0 commit comments

Comments
 (0)