File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,18 @@ if [[ $(git diff --exit-code mkdocs.yml) ]]; then
1010 git config --global user.name " github-actions[bot]"
1111
1212 echo " detected changes in mkdocs.yml"
13+ git stash push -- mkdocs.yml
1314 if [[ ${GITHUB_EVENT_NAME} == " pull_request" ]]; then
1415 # on PR push to the same branch
1516 gh pr checkout $( echo " ${GITHUB_REF_NAME} " | cut -d/ -f1)
17+ git stash pop
1618 git add mkdocs.yml
1719 git commit -m " Update mkdocs.yml translation" --no-verify
1820 git push
1921 else
2022 # on push/workflow_dispatch directly push to branch
2123 git checkout ${GITHUB_REF_NAME}
24+ git stash pop
2225 git add mkdocs.yml
2326 git commit -m " Update mkdocs.yml translation" --no-verify
2427 git push -u origin ${GITHUB_REF_NAME}
You can’t perform that action at this time.
0 commit comments