Merge pull request #298 from kchro3/kchro3/add-premium-info-to-onboar… #24
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
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'Localizable.xcstrings' | |
jobs: | |
update_localizations: | |
name: Update Localization strings | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install openai | |
- name: Update Localizations | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
run: | | |
python .github/scripts/update_localizations.py Localizable.xcstrings | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 |