-
Notifications
You must be signed in to change notification settings - Fork 117
42 lines (39 loc) · 1.23 KB
/
i18n_server_list_update.yaml
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
name: i18n Update Servers
# This Workflow will periodically go in:
# 1. Update extras.xliff with any new servers names Mullvad may have added
# 2. File a pr with the changes to extras.xliff
on:
schedule:
- cron: "0 7 * * 1" # Every Monday at 7:00 UTC
workflow_dispatch:
permissions:
pull-requests: write
contents: write
jobs:
main:
name: Update server name strings
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
submodules: "true"
- uses: actions/setup-python@v5
with:
python-version: "3.9"
cache: "pip"
- run: pip install -r requirements.txt
- name: Update server name strings
run: |
scripts/ci/update_server_names.py
- uses: peter-evans/create-pull-request@v6
id: cpr
with:
# This may not be github, cuz gh actions cannot self approve
author: GitHub <[email protected]>
committer: GitHub <[email protected]>
commit-message: "[Bot] Add new server name strings"
branch: i18n_server_names_automation
delete-branch: true
title: "[Bot] Add new server name strings"
token: ${{ secrets.WIKI_TOKEN }}