i18n Update Servers #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |