updated reference for InvenTree/InvenTree

won't work if there isn't a origin/l10 in the repo
This commit is contained in:
Matthias Mair 2021-04-21 14:27:25 +02:00 committed by GitHub
parent cdea39def0
commit decb56e353
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ jobs:
- name: get current translations - name: get current translations
run: | run: |
git fetch git fetch
git checkout origin/l10_base -- `git ls-tree origin/l10_base -r --name-only | grep ".po"` git checkout origin/l10 -- `git ls-tree origin/l10 -r --name-only | grep ".po"`
git reset git reset
- name: Set up Python 3.7 - name: Set up Python 3.7
uses: actions/setup-python@v1 uses: actions/setup-python@v1
@ -46,7 +46,7 @@ jobs:
- name: Checkout tranlation-branch - name: Checkout tranlation-branch
uses: actions/checkout@v2.3.4 uses: actions/checkout@v2.3.4
with: with:
ref: l10_base ref: l10
- name: Commit files - name: Commit files
run: | run: |
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"
@ -54,9 +54,9 @@ jobs:
git checkout stash -- . git checkout stash -- .
git reset git reset
git add "*.po" git add "*.po"
git commit -m "generated translation base" git commit -m "updated translation base"
- name: Push changes - name: Push changes
uses: ad-m/github-push-action@master uses: ad-m/github-push-action@master
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
branch: l10_base branch: l10