Skip to content

Commit 0b39ebc

Browse files
committed
ci(workflows): update gh-pages configuration
1 parent f2199cc commit 0b39ebc

File tree

1 file changed

+10
-16
lines changed

1 file changed

+10
-16
lines changed

.github/workflows/gh-pages.yml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -52,22 +52,16 @@ jobs:
5252
echo "No language files to update."
5353
else
5454
for i in $(seq 1 "$TOTAL_POSTS"); do
55-
UPDATE_LANG_OUTPUT=$(python scripts/update_lang.py --max_files 1 --model mistral | grep "Total Markdown files to process:")
56-
echo "$UPDATE_LANG_OUTPUT"
57-
if [[ "$UPDATE_LANG_OUTPUT" == *'Total Markdown files to process: 0'* ]]; then
58-
echo "No more language files to update."
59-
break
60-
else
61-
git config user.name "github-actions[bot]"
62-
git config user.email "github-actions[bot]@users.noreply.github.com"
63-
git add _posts/**/*.md
64-
git diff --cached --quiet || git commit -m "chore(lang): Update language files"
65-
66-
git push || {
67-
echo "Push failed, attempting pull and merge"
68-
git pull --rebase
69-
git push
70-
}
55+
python scripts/update_lang.py --max_files 1 --model mistral
56+
git config user.name "github-actions[bot]"
57+
git config user.email "github-actions[bot]@users.noreply.github.com"
58+
git add _posts/**/*.md
59+
git diff --cached --quiet || git commit -m "chore(lang): Update language files"
60+
git push || {
61+
echo "Push failed, attempting pull and merge"
62+
git pull --rebase
63+
git push
64+
}
7165
fi
7266
done
7367
fi

0 commit comments

Comments
 (0)