Skip to content

Commit

Permalink
Fix lingui failing for weblate PRs (#1425)
Browse files Browse the repository at this point in the history
* lingui

* test

* more test

* Update .github/workflows/lingui-extract-files.yml

* another try

* 2

* 3

* 4

* 5

* 6

* 7

* lingui extract

* 8

* 9

* 10

* 11

* 12

* 13

* Update packages/files-ui/src/Components/Elements/MnemonicForm.tsx

Co-authored-by: Michael Yankelev <12774278+FSM1@users.noreply.github.com>
Co-authored-by: GitHub Actions <actions@github.com>
  • Loading branch information
3 people authored Aug 11, 2021
1 parent 31b6739 commit 7167faa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lingui-extract-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.ref }}
ssh-key: ${{ secrets.LINGUI_GH_ACTION_COMMIT_KEY }}

- name: set user
run: |
git config --global user.name 'GitHub Actions'
Expand All @@ -32,6 +31,7 @@ jobs:
run: yarn install --immutable

- name: lingui-extract and commit
if: ${{ github.actor != 'weblate' }}
run: |
(cd packages/files-ui && yarn extract --clean)
git add packages/files-ui/src/locales/*
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lingui-extract-gaming.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.ref }}
ssh-key: ${{ secrets.LINGUI_GH_ACTION_COMMIT_KEY }}

- name: set user
run: |
git config --global user.name 'GitHub Actions'
Expand All @@ -31,7 +30,8 @@ jobs:
- name: install packages
run: yarn install --immutable

- name: lingui-extract
- name: lingui-extract and commit
if: ${{ github.actor != 'weblate' }}
run: |
(cd packages/gaming-ui && yarn extract --clean)
git add packages/gaming-ui/src/locales/*
Expand Down
8 changes: 2 additions & 6 deletions .github/workflows/lingui-extract-storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.ref }}
ssh-key: ${{ secrets.LINGUI_GH_ACTION_COMMIT_KEY }}

- name: set user
run: |
git config --global user.name 'GitHub Actions'
Expand All @@ -29,13 +28,10 @@ jobs:
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

- name: install packages
env:
GITHUB_PACKAGES_AUTH_TOKEN: ${{ secrets.GH_PKG_AUTH_TOKEN }}
run: yarn install --immutable

- name: lingui-extract
env:
GITHUB_PACKAGES_AUTH_TOKEN: ${{ secrets.GH_PKG_AUTH_TOKEN }}
- name: lingui-extract and commit
if: ${{ github.actor != 'weblate' }}
run: |
(cd packages/storage-ui && yarn extract --clean)
git add packages/storage-ui/src/locales/*
Expand Down
2 changes: 1 addition & 1 deletion packages/files-ui/src/Components/Elements/MnemonicForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,4 @@ const MnemonicForm = ({ buttonLabel, onComplete }: Props) => {
)
}

export default MnemonicForm
export default MnemonicForm

0 comments on commit 7167faa

Please sign in to comment.