Merge pull request #707 from mjakeman/oscfdezdz/blueprint-0.14 #22
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
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'data/com.mattjakeman.ExtensionManager.desktop.in.in' | |
- 'data/com.mattjakeman.ExtensionManager.metainfo.xml.in.in' | |
- 'po/POTFILES' | |
- 'src/*.c' | |
- 'src/*.blp' | |
workflow_dispatch: | |
workflow_call: | |
name: Translations | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
update_pot: | |
name: Update Template | |
runs-on: ubuntu-latest | |
container: debian:sid | |
steps: | |
- name: Install Dependencies | |
run: | | |
apt update | |
apt install -y git meson gcc gettext cmake appstream desktop-file-utils \ | |
libadwaita-1-dev libgtk-4-dev libjson-glib-dev libsoup-3.0-dev libtext-engine-dev \ | |
blueprint-compiler | |
- name: Setup Repository | |
run: | | |
git clone -b ${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}} \ | |
${{ github.server_url }}/${{ github.repository }} . | |
- uses: actions/[email protected] | |
with: | |
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: Update POTFILES | |
run: | | |
cd po | |
bash ./print-source-files.sh > ./POTFILES | |
cd .. | |
- name: Update Translation Template | |
run: | | |
meson setup _build -Dbacktrace=false | |
meson compile -C _build extension-manager-pot | |
- name: Create Pull Request | |
uses: peter-evans/[email protected] | |
with: | |
commit-message: 'po: Update template' | |
title: 'po: Update template' | |
branch: update-pot | |
base: master | |
delete-branch: true |