Update messages #748
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
env: | |
PYTHON_VERSION: '3.9' | |
QT_VERSION: '5.15.2' | |
TCL_VERSION: '8.6' | |
name: Update messages | |
on: | |
workflow_dispatch: | |
inputs: | |
schedule: | |
- cron: '30 5 * * *' # run at 5:30 AM UTC every day | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
architecture: 'x64' | |
- name: Qt installation dir | |
id: qt-installation-dir | |
run: echo "DIR=$(readlink -f ${{ github.workspace }}/..)" >> $GITHUB_OUTPUT | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v3 | |
with: | |
cache: true | |
version: ${{ env.QT_VERSION }} | |
host: 'linux' | |
dir: '${{ steps.qt-installation-dir.DIR }}' | |
aqtversion: '==3.0.*' | |
py7zrversion: '==0.20.*' | |
setup-python: 'false' | |
extra: '--external 7z' | |
- name: Clone repo | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ env.GITHUB_REF }} | |
- name: Install Tcl | |
run: sudo apt-get install -qq libtcl$TCL_VERSION tcl$TCL_VERSION-dev | |
- name: Install xmllint | |
run: sudo apt install libxml2-utils | |
- name: Executing lang update | |
working-directory: SQLiteStudio3 | |
run: tclsh lang.tcl update | |
- name: Listing Git status | |
run: | | |
git status | |
echo "===========================================================================" | |
git diff | |
- name: Committing changes | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add . | |
git diff-index --quiet HEAD || git commit -m "Automated update of translation files." | |
git push |