Skip to content

Add test page

Add test page #5

name: Fix translations
on:
pull_request:
workflow_dispatch:
jobs:
i18n-fixes:
name: Fix translated files
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout the latest commit
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Run translation fixes script
run: sh .github/scripts/fix-i18n.sh
- name: Check for modified files
id: git-check
run: echo ::set-output name=modified::$(if [ -n "$(git status --porcelain)" ]; then echo "true"; else echo "false"; fi)
- name: Commit changes
if: steps.git-check.outputs.modified == 'true'
run: |
git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git commit -am "Fix translated files"
git push