Skip to content

Commit

Permalink
Add workflow to update pot file
Browse files Browse the repository at this point in the history
  • Loading branch information
insolor committed Jul 22, 2024
1 parent 6844fd9 commit bdbf9eb
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/update-source-language-file.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Update App Source Language File

on:
push:
branches: ["main"]
paths:
- "app.py"
- "package_build/*.py"
- ".github/workflows/update-source-language-file.yml"

workflow_dispatch:

jobs:
push:
runs-on: ubuntu-latest
timeout-minutes: 60

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Install Poetry
run: pipx install poetry

- name: Install dependencies
run: poetry install

- name: Extract localizable strings
run: poe xgettext

- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
title: Update source language file
commit-message: Update source language file
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
add-paths: package_build/locale/messages.pot
delete-branch: true

0 comments on commit bdbf9eb

Please sign in to comment.