Skip to content

Commit 4bd6ff4

Browse files
committed
Test CI
1 parent 899c587 commit 4bd6ff4

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/wrap.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,18 @@ jobs:
6969
# Commit changes
7070
- name: Commit files
7171
run: |
72-
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
73-
git config --local user.name "github-actions[bot]"
74-
git commit -m "Wrap files" -a
72+
echo "WRAPPED=$(git diff --name-only | tr '\n' ' ')" >> $GITHUB_ENV
73+
array=($WRAPPED)
74+
len=${#array[@]}
75+
if [[ $len -eq 0 ]]; then
76+
echo "No files to commit"
77+
else
78+
echo "Committing changes"
79+
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
80+
git config --local user.name "github-actions[bot]"
81+
git add ${WRAPPED}
82+
git commit -m "Wrap translations"
83+
fi
7584
7685
# Push changes
7786
- name: Push changes

0 commit comments

Comments
 (0)