File tree Expand file tree Collapse file tree 2 files changed +20
-16
lines changed Expand file tree Collapse file tree 2 files changed +20
-16
lines changed Original file line number Diff line number Diff line change 2
2
set -x
3
3
set -e
4
4
5
- git --version
6
- git config --global user.email " 86386385+FajarKim@users.noreply.github.com"
7
- git config --global user.name " Rangga Fajar Oktariansyah"
8
- git config --global --add safe.directory ${GITHUB_WORKSPACE}
9
- git add --all
10
- git commit --message " docs(translation): auto update translation readme"
11
- git remote add master https://${PERSONAL_TOKEN} @github.com/${GH_REPO} .git
12
- git push -f
5
+ if [[ " $( git status --porcelain) " != " " ]]; then
6
+ git --version
7
+ git config --global user.email " 86386385+FajarKim@users.noreply.github.com"
8
+ git config --global user.name " Rangga Fajar Oktariansyah"
9
+ git config --global --add safe.directory ${GITHUB_WORKSPACE}
10
+ git add --all
11
+ git commit --message " docs(translation): auto update translation readme"
12
+ git remote add master https://${PERSONAL_TOKEN} @github.com/${GH_REPO} .git
13
+ git push -f
14
+ fi
Original file line number Diff line number Diff line change 2
2
set -x
3
3
set -e
4
4
5
- git --version
6
- git config --global user.email " 86386385+FajarKim@users.noreply.github.com"
7
- git config --global user.name " Rangga Fajar Oktariansyah"
8
- git config --global --add safe.directory ${GITHUB_WORKSPACE}
9
- git add --all
10
- git commit --message " docs(theme): auto update theme readme"
11
- git remote add master https://${PERSONAL_TOKEN} @github.com/${GH_REPO} .git
12
- git push -f
5
+ if [[ " $( git status --porcelain) " != " " ]]; then
6
+ git --version
7
+ git config --global user.email " 86386385+FajarKim@users.noreply.github.com"
8
+ git config --global user.name " Rangga Fajar Oktariansyah"
9
+ git config --global --add safe.directory ${GITHUB_WORKSPACE}
10
+ git add --all
11
+ git commit --message " docs(theme): auto update theme readme"
12
+ git remote add master https://${PERSONAL_TOKEN} @github.com/${GH_REPO} .git
13
+ git push -f
14
+ fi
You can’t perform that action at this time.
0 commit comments