Skip to content

feat(frontend): add sol api for balance #440

feat(frontend): add sol api for balance

feat(frontend): add sol api for balance #440

name: Auto Update i18n
on:
pull_request:
types: [opened, synchronize]
paths:
- 'src/frontend/src/lib/i18n/*'
- 'src/frontend/src/lib/types/i18n.d.ts'
jobs:
auto_update:
runs-on: ubuntu-24.04
steps:
- name: Create GitHub App Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.PR_AUTOMATION_BOT_PUBLIC_APP_ID }}
private-key: ${{ secrets.PR_AUTOMATION_BOT_PUBLIC_PRIVATE_KEY }}
- name: Checkout code
uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ steps.app-token.outputs.token }}
- name: Prepare
uses: ./.github/actions/prepare
- name: Run i18n Script
run: npm run i18n
- name: Check for Changes
id: check_changes
run: |
if [[ -n "$(git status --porcelain)" ]]; then
echo "changes_detected=true" >> $GITHUB_OUTPUT
else
echo "changes_detected=false" >> $GITHUB_OUTPUT
fi
- name: Commit i18n
if: steps.check_changes.outputs.changes_detected == 'true'
uses: EndBug/add-and-commit@v9
with:
add: .
default_author: github_actions
message: '🤖 Updated i18n files'