mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 11:40:01 +00:00
The error only occurs in the CI action, which is why we need to commit the coded debug. As soon as the bug is identified and fixed, this commit can be reverted / the ``set -x`` can be removed from the code. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
@@ -25,8 +25,7 @@ weblate.translations.worktree() {
|
|||||||
git remote add weblate https://translate.codeberg.org/git/searxng/searxng/
|
git remote add weblate https://translate.codeberg.org/git/searxng/searxng/
|
||||||
fi
|
fi
|
||||||
if [ -d "${TRANSLATIONS_WORKTREE}" ]; then
|
if [ -d "${TRANSLATIONS_WORKTREE}" ]; then
|
||||||
pushd .
|
pushd "${TRANSLATIONS_WORKTREE}"
|
||||||
cd "${TRANSLATIONS_WORKTREE}"
|
|
||||||
git reset --hard HEAD
|
git reset --hard HEAD
|
||||||
git pull origin translations
|
git pull origin translations
|
||||||
popd
|
popd
|
||||||
@@ -60,6 +59,8 @@ weblate.to.translations() {
|
|||||||
wlc pull
|
wlc pull
|
||||||
wlc commit
|
wlc commit
|
||||||
|
|
||||||
|
set -x # https://github.com/searxng/searxng/issues/5490
|
||||||
|
|
||||||
# get the translations in a worktree
|
# get the translations in a worktree
|
||||||
weblate.translations.worktree
|
weblate.translations.worktree
|
||||||
|
|
||||||
@@ -85,12 +86,14 @@ weblate.translations.commit() {
|
|||||||
# lock change on weblate
|
# lock change on weblate
|
||||||
wlc lock
|
wlc lock
|
||||||
|
|
||||||
|
set -x # https://github.com/searxng/searxng/issues/5490
|
||||||
|
|
||||||
# get translations branch in git worktree (TRANSLATIONS_WORKTREE)
|
# get translations branch in git worktree (TRANSLATIONS_WORKTREE)
|
||||||
weblate.translations.worktree
|
weblate.translations.worktree
|
||||||
existing_commit_hash=$(
|
|
||||||
cd "${TRANSLATIONS_WORKTREE}"
|
pushd "${TRANSLATIONS_WORKTREE}"
|
||||||
git log -n1 --pretty=format:'%h'
|
existing_commit_hash=$(git log -n1 --pretty=format:'%h')
|
||||||
)
|
popd
|
||||||
|
|
||||||
# pull weblate commits
|
# pull weblate commits
|
||||||
weblate.to.translations
|
weblate.to.translations
|
||||||
@@ -147,6 +150,9 @@ weblate.push.translations() {
|
|||||||
(
|
(
|
||||||
set -e
|
set -e
|
||||||
pyenv.activate
|
pyenv.activate
|
||||||
|
|
||||||
|
set -x # https://github.com/searxng/searxng/issues/5490
|
||||||
|
|
||||||
# get translations branch in git worktree (TRANSLATIONS_WORKTREE)
|
# get translations branch in git worktree (TRANSLATIONS_WORKTREE)
|
||||||
weblate.translations.worktree
|
weblate.translations.worktree
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user