chore(resources): update telegram cidr #94
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: 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 |