-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (49 loc) · 1.58 KB
/
update_languages.yml
File metadata and controls
60 lines (49 loc) · 1.58 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
50
51
52
53
54
55
56
57
58
59
60
name: Update Supported Languages
on:
schedule:
- cron: '0 0 * * 0' # Run every Sunday at midnight
workflow_dispatch: # Allow manual trigger
permissions:
contents: write
pull-requests: write
jobs:
update-languages:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
ref: main
token: ${{ secrets.BOT_MASTER_RW_GITHUB_TOKEN_JANUS }}
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: '3.x'
- name: Install dependencies
run: |
pip install beautifulsoup4
- name: Run update script
run: python3 scripts/update_languages.py
- name: Setup Java
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '21'
- name: Setup Android SDK
uses: android-actions/setup-android@v3
with:
cmdline-tools-version: 13114758
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Run spotlessApply
run: ./gradlew spotlessApply
- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.BOT_MASTER_RW_GITHUB_TOKEN_JANUS }}
commit-message: "chore: update supported languages list"
title: "chore: Update supported languages list"
body: "This PR updates the list of supported Wikipedia languages based on the latest statistics."
branch: "chore/update-languages"
delete-branch: true
base: main