Add template update workflow

This commit is contained in:
Johannes Meyer 2020-04-23 14:30:08 +02:00
parent 10b9de7ca7
commit 25024954f0
1 changed files with 30 additions and 0 deletions

30
.github/workflows/template-update.yml vendored Normal file
View File

@ -0,0 +1,30 @@
name: Template Update
on:
repository_dispatch:
types:
- update
jobs:
update:
name: Gettext template update
runs-on: ubuntu-latest
steps:
- name: Checkout code base
uses: actions/checkout@v2
- name: Setup dependencies
run: sudo apt-get -y install gettext
- name: Update template file
run: cd ./src/ && ../bin/update
- name: Open pull request
uses: peter-evans/create-pull-request@v2
with:
commit-message: "icinga.pot: Add latest messages"
title: "Update template file"
body: "Adds latest messages to the icinga template"
labels: "automation"
branch: "update-template-file"