Skip to content

Commit aea141a

Browse files
committed
Fixing unstashed changes on workflow
1 parent 11cb8fa commit aea141a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

utils/mkdocs_tx_commit.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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}

0 commit comments

Comments
 (0)