-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (41 loc) · 1.18 KB
/
gettext.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: gettext
on:
workflow_dispatch:
push:
branches: ["main"]
paths:
- src/**/*.rs
- resources/**/*.blp
- resources/de.swsnr.turnon.metainfo.xml.in
- de.swsnr.turnon.desktop.in
- Makefile
- .github/workflows/gettext.yml
jobs:
xgettext:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
container:
image: docker.io/fedora:latest
steps:
# We need appstream as it provides extraction rules for metainfo files
- name: Install git, make, gettext, and appstream
run: dnf install -y git make gettext appstream
- uses: actions/checkout@v4
- run: make pot
# Create a pull request to update the messages file
- uses: peter-evans/create-pull-request@v7
with:
commit-message: |
Update messages
Github bot runs make pot :v:
branch: workflow/update-messages
base: main
sign-commits: true
delete-branch: true
title: "Update messages"
body: "Github bot runs make pot :v:"
assignees: swsnr
draft: true
add-paths: po/de.swsnr.turnon.pot