Skip to content

feat(lfx): Bundle Separation and LFX Extension Framework #280

feat(lfx): Bundle Separation and LFX Extension Framework

feat(lfx): Bundle Separation and LFX Extension Framework #280

name: GP Backend Auto-update Strings
on:
pull_request:
paths:
- "src/lfx/src/lfx/components/**"
- "src/backend/base/langflow/initial_setup/starter_projects/**"
jobs:
auto-commit:
if: |
github.actor != 'github-actions[bot]' &&
github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
name: Auto-regenerate locales/en.json on PR branch
permissions:
contents: write
steps:
- name: Checkout PR branch
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Bake i18n_key into template noteNodes
run: python scripts/gp/bake_note_keys.py
- name: Setup uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
python-version: "3.12"
- name: Install workspace (lfx + langflow-base)
run: uv sync --no-dev
- name: Generate en.json
run: uv run python scripts/gp/extract_backend_strings.py
- name: Commit updated files to PR branch if changed
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add src/backend/base/langflow/initial_setup/starter_projects/
git add src/backend/base/langflow/locales/en.json
git diff --staged --quiet || git commit -m "chore: auto-bake note keys and regenerate backend locales/en.json [skip ci]"
git push