Sync objects #159
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
# This is a workflow to add object names to new objects in enUS | |
# and sync them to all other locales using Wowhead data | |
name: Sync objects | |
# Controls when the action will run. | |
on: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
sync_objects: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install aiohttp beautifulsoup4 | |
- name: Sync objects | |
working-directory: .contrib/.tools/Localization | |
run: | | |
python sync_objects.py | |
git add --all | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
commit-message: Sync localization | |
title: Sync localization | |
branch: auto_localization | |
delete-branch: true |