We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 899c587 commit 4bd6ff4Copy full SHA for 4bd6ff4
.github/workflows/wrap.yml
@@ -69,9 +69,18 @@ jobs:
69
# Commit changes
70
- name: Commit files
71
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
+ echo "WRAPPED=$(git diff --name-only | tr '\n' ' ')" >> $GITHUB_ENV
+ array=($WRAPPED)
+ 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
84
85
# Push changes
86
- name: Push changes
0 commit comments