feat: csv 파일 내용 추가 #15
Workflow file for this run
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: Update Translations | |
| on: | |
| push: | |
| paths: | |
| - 'translations/**' | |
| workflow_dispatch: | |
| jobs: | |
| update-translations: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '20' | |
| - name: Install pnpm | |
| run: npm install -g pnpm | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Generate translation JSON | |
| run: pnpm exec ts-node --transpile-only scripts/generateTranslations.js | |
| - name: Commit updated translations | |
| run: | | |
| git config --global user.name "github-actions" | |
| git config --global user.email "github-actions@github.com" | |
| git add locales | |
| git diff --cached --quiet || (git commit -m "chore: update translations" && git push) |