feat(lfx): Bundle Separation and LFX Extension Framework #285
This file contains hidden or 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: 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 |