[PL] Unfuzzy game modes and AI #1706
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: Check for unupdated translations | |
on: | |
pull_request: | |
branches: [main] | |
env: | |
PO4A_VERSION: "0.73" | |
PO4A_GH_URL: https://github.com/mquinson/po4a/releases/download | |
jobs: | |
check_po4a: | |
if: github.event_name == 'pull_request' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up repository | |
uses: actions/checkout@v4 | |
- name: Install po4a | |
run: | | |
sudo apt-get install -y po4a # required as standalone po4a is missing some deps | |
wget --quiet ${{ env.PO4A_GH_URL }}/v${{ env.PO4A_VERSION }}/po4a-${{ env.PO4A_VERSION}}.tar.gz # sadly the version from apt isn't working | |
export PO4A_DIR="po4a-${{ env.PO4A_VERSION }}" | |
tar -xf ${PO4A_DIR}.tar.gz | |
- name: Check if translations require updating | |
run: | | |
export PO4A_DIR="po4a-${{ env.PO4A_VERSION }}" | |
export PERL5LIB="${PO4A_DIR}/lib:${PERL5LIB}" | |
./${PO4A_DIR}/po4a --no-translations po4a.cfg | |
if [[ `git status --porcelain translations` ]]; then | |
echo "There are uncommited changes to translations:" | |
git status --porcelain translations | |
exit 1 | |
fi |