File tree Expand file tree Collapse file tree 1 file changed +10
-16
lines changed Expand file tree Collapse file tree 1 file changed +10
-16
lines changed Original file line number Diff line number Diff line change @@ -52,22 +52,16 @@ jobs:
52
52
echo "No language files to update."
53
53
else
54
54
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
+ }
71
65
fi
72
66
done
73
67
fi
You can’t perform that action at this time.
0 commit comments