Skip to content

chore(resources): update geodata #100

chore(resources): update geodata

chore(resources): update geodata #100

name: Rescan translation
on:
push:
branches:
- 'master'
paths:
- 'htdocs/**'
- 'root/**'
jobs:
scan:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout source tree
uses: actions/checkout@v4
- name: Rescan translation
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo -E apt-get -y install gettext
curl -LO "https://github.com/openwrt/luci/raw/master/build/i18n-scan.pl"
curl -LO "https://github.com/openwrt/luci/raw/master/build/i18n-update.pl"
perl "i18n-scan.pl" . > "po/templates/homeproxy.pot"
perl "i18n-update.pl" "po"
find po/ -name '*.po~' -exec rm -f {} \;
rm -f "i18n-scan.pl" "i18n-update.pl"
[ -z "$(git status -s)" ] || echo -e "CHANGE_STAT=1" >> "$GITHUB_ENV"
- name: Commit changes
if: ${{ env.CHANGE_STAT }}
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "<41898282+github-actions[bot]@users.noreply.github.com>"
git add .
git commit -m "chore(po): rescan translation"
git push -f origin HEAD:po