From 25a768720a2b8a1c69e8a85ddbdd503875f0a4e8 Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Mon, 19 Feb 2024 13:05:38 +0100 Subject: [PATCH] fix --- website/scripts/mkdocs_tx_commit.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/scripts/mkdocs_tx_commit.sh b/website/scripts/mkdocs_tx_commit.sh index fb79d842..7a5b03ec 100755 --- a/website/scripts/mkdocs_tx_commit.sh +++ b/website/scripts/mkdocs_tx_commit.sh @@ -16,12 +16,13 @@ if [[ $(git diff --exit-code mkdocs.yml) ]]; then # git push else # on push create a pull request + git checkout ${GITHUB_REF_NAME} BRANCH="update-mkdocs-tx-$RANDOM" git checkout -b ${BRANCH} git add mkdocs.yml git commit -m "Update mkdocs.yml translation" echo "gh pr create -B ${GITHUB_REF_NAME} -H ${BRANCH} --title 'Update mkdocs translations' --body 'run from mkdocs_tx'" - gh pr create -B "${GITHUB_REF_NAME}" -H "${BRANCH}" --title 'Update mkdocs translations' --body 'run from mkdocs_tx' + gh pr create -B ${GITHUB_REF_NAME} -H ${BRANCH} --title 'Update mkdocs translations' --body 'run from mkdocs_tx' fi else echo "no change mkdocs.yml"