-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (42 loc) · 1.52 KB
/
translation.yml
File metadata and controls
49 lines (42 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Translation
on:
pull_request:
push:
env:
COMPOSE_USER: runner
jobs:
check-translations:
if: false
runs-on: ubuntu-latest
strategy:
matrix:
task:
- translation:contrib-translations:export
- translation:config-translations:export
- translation:module-translations:export
- translation:theme-translations:export
steps:
- uses: actions/checkout@v4
# https://github.com/actions/checkout/issues/881
# https://github.com/actions/checkout/issues/504
# https://github.com/actions/checkout?tab=readme-ov-file#checkout-pull-request-head-commit-instead-of-merge-commit
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: arduino/setup-task@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install site
run: |
docker network create frontend
task site-install --yes
- name: Export translations (${{ matrix.task }})
run: |
task ${{ matrix.task }}
# https://github.com/mxschmitt/action-tmate?tab=readme-ov-file#manually-triggered-debug
# Enable tmate debugging if debug logging is enabled (cf.
# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/accessing-contextual-information-about-workflow-runs#runner-context)
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: 1 == runner.debug
- run: |
task translation:translations:diff