Rearrange SDK content structure #28
Workflow file for this run
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: 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 | |
- 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-actions | |
git config --global user.email [email protected] | |
git commit -am "Fix translated files" | |
git push |