Skip to content

Commit 273afec

Browse files
committed
wip
1 parent 42d544a commit 273afec

3 files changed

Lines changed: 39 additions & 1 deletion

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Sync English strings to Weblate branch
2+
3+
on:
4+
push:
5+
branches:
6+
- beta
7+
8+
jobs:
9+
sync-english:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout weblate branch
14+
uses: actions/checkout@v4
15+
with:
16+
ref: weblate
17+
fetch-depth: 0
18+
19+
- name: Configure Git user
20+
run: |
21+
git config user.name "github-actions[bot]"
22+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
23+
24+
- name: Sync English directories from main branch
25+
run: |
26+
DIRECTORIES=("app/src/main/res/values" "fastlane/metadata/android/en-US")
27+
MAIN_BRANCH="beta"
28+
WEBLATE_BRANCH="weblate"
29+
REMOTE="origin"
30+
31+
git checkout $MAIN_BRANCH -- "${DIRECTORIES[@]}"
32+
33+
if ! git diff --quiet "${DIRECTORIES[@]}"; then
34+
git add "${DIRECTORIES[@]}"
35+
git commit -m "Sync English directories from $MAIN_BRANCH"
36+
git push $REMOTE $WEBLATE_BRANCH
37+
fi
38+

.idea/gradle.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ aboutLibraries {
252252
excludeFields.set(listOf("generated"))
253253
}
254254
license {
255+
// TODO https://github.com/mikepenz/AboutLibraries/issues/1190
255256
strictMode = com.mikepenz.aboutlibraries.plugin.StrictMode.FAIL
256257
allowedLicenses.addAll("Apache-2.0", "LGPL")
257258
}

0 commit comments

Comments
 (0)