Merge pull request #544 from J0w03L/master #81
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: Clean/sort locale files | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
clean_locale_files: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out this repo | |
uses: actions/checkout@v3 | |
- name: install dependencies | |
run: | | |
sudo apt-get install -y gettext | |
- name: Clean/sort locale files | |
run: |- | |
DO_SORT=true ./clean_all.sh | |
- name: Commit and push if it changed | |
run: |- | |
git config user.name "Automated" | |
git config user.email "[email protected]" | |
git add -A | |
timestamp=$(date -u) | |
git commit -m "Cleaning locale files: ${timestamp}" || exit 0 | |
git push |