mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-27 19:16:44 +00:00
fix(ci): Make translation step more robust (#9587)
The translation push step fails from time to time - this adds more step logging and makes it more robust https://github.com/inventree/InvenTree/actions/runs/14653723469/job/41124911037
This commit is contained in:
parent
2ed3e61a57
commit
e90346f14d
5
.github/workflows/translations.yaml
vendored
5
.github/workflows/translations.yaml
vendored
@ -49,9 +49,12 @@ jobs:
|
|||||||
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
git config --local user.name "github-actions[bot]"
|
git config --local user.name "github-actions[bot]"
|
||||||
git add src/backend/InvenTree/locale/en/LC_MESSAGES/django.po src/frontend/src/locales/en/messages.po
|
git add src/backend/InvenTree/locale/en/LC_MESSAGES/django.po src/frontend/src/locales/en/messages.po
|
||||||
|
echo "Adding commit (or ignoring if no changes)"
|
||||||
git commit -m "add translations" || true
|
git commit -m "add translations" || true
|
||||||
|
echo "Removing all other changes"
|
||||||
git reset --hard
|
git reset --hard
|
||||||
git reset HEAD~
|
echo "Resetting to HEAD~"
|
||||||
|
git reset HEAD~ || true
|
||||||
- name: crowdin action
|
- name: crowdin action
|
||||||
uses: crowdin/github-action@b8012bd5491b8aa8578b73ab5b5f5e7c94aaa6e2 # pin@v2
|
uses: crowdin/github-action@b8012bd5491b8aa8578b73ab5b5f5e7c94aaa6e2 # pin@v2
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user