From e7071c7d6d66bc58e0d1c5a380cf5702bdcdd2e2 Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Mon, 19 Feb 2024 10:54:51 +0100 Subject: [PATCH] fix --- website/scripts/mkdocs_tx_commit.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/website/scripts/mkdocs_tx_commit.sh b/website/scripts/mkdocs_tx_commit.sh index 334d573b..516d959a 100755 --- a/website/scripts/mkdocs_tx_commit.sh +++ b/website/scripts/mkdocs_tx_commit.sh @@ -14,11 +14,12 @@ if [[ $(git diff --exit-code mkdocs.yml) ]]; then else # on push create a pull request git checkout ${GITHUB_HEADREF} - git checkout -b update-mkdocs-tx + BRANCH=update-mkdocs-tx-$RANDOM + git checkout -b $BRANCH git add mkdocs.yml git commit -m "Update mkdocs.yml translation" - git push -u origin update-mkdocs-tx - gh pr create -B update-mkdocs-tx -H update-mkdocs-tx --title 'Update mkdocs translations' --body 'run from mkdocs_tx' + git push -u origin $BRANCH + gh pr create -B ${GITHUB_HEADREF} -H $BRANCH --title 'Update mkdocs translations' --body 'run from mkdocs_tx' fi else echo "no change mkdocs.yml"