From 25024954f01ae57a0b3d9b0f2dbcf442bcdfc39a Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 23 Apr 2020 14:30:08 +0200 Subject: [PATCH] Add template update workflow --- .github/workflows/template-update.yml | 30 +++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/template-update.yml diff --git a/.github/workflows/template-update.yml b/.github/workflows/template-update.yml new file mode 100644 index 00000000..21d4aeae --- /dev/null +++ b/.github/workflows/template-update.yml @@ -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"