Skip to content

Commit

Permalink
ci: Download translated POs for metainfo and desktop file
Browse files Browse the repository at this point in the history
  • Loading branch information
kjarosh committed Sep 27, 2024
1 parent 34370ff commit 31f40d8
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/download_translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,24 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt-get install -y itstool gettext appstream
- name: Generate desktop & metainfo sources
working-directory: desktop/packages/linux
run: |
make update
# Crowdin action creates files and directories as root,
# however we need write access to them to apply changes,
# so just create them here instead of relying on Crowdin.
- name: Create locale directories
working-directory: desktop/packages/linux
run: |
mkdir -p locale/rs.ruffle.Ruffle.desktop
mkdir -p locale/rs.ruffle.Ruffle.metainfo.xml
- name: Crowdin download
uses: crowdin/github-action@v2
with:
Expand All @@ -28,6 +46,11 @@ jobs:
env:
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

- name: Apply desktop & metainfo sources
working-directory: desktop/packages/linux
run: |
make apply
- name: Commit
run: |
git config user.name "RuffleBuild"
Expand Down

0 comments on commit 31f40d8

Please sign in to comment.