feat(i18n): Added Portuguese translation (#169) #10
This file contains 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: Generate Translation Readme | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
paths: | |
- "src/translations.ts" | |
permissions: | |
actions: read | |
checks: read | |
contents: write | |
deployments: read | |
issues: read | |
discussions: read | |
packages: read | |
pages: read | |
pull-requests: read | |
repository-projects: read | |
security-events: read | |
statuses: read | |
jobs: | |
generateThemeDoc: | |
runs-on: ubuntu-latest | |
name: Generate theme doc | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Setup Node | |
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: npm | |
# Fix the unsafe repo error which was introduced by the CVE-2022-24765 git patches. | |
- name: Fix unsafe repo error | |
run: git config --global --add safe.directory ${{ github.workspace }} | |
- name: npm install, generate readme | |
run: | | |
npm ci | |
npm run locale-readme-gen | |
env: | |
CI: true | |
- name: Run Script | |
uses: skx/github-action-tester@e29768ff4ff67be9d1fdbccd8836ab83233bebb1 # v0.10.0 | |
with: | |
script: ./scripts/push-commit.sh | |
env: | |
CI: true | |
AUTHOR_NAME: GitHub Actions | |
AUTHOR_EMAIL: github-actions[bot]@users.noreply.github.com | |
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }} | |
GH_REPO: ${{ secrets.GH_REPO }} | |
MESSAGE: "docs(translation): auto update translation readme" |