|
|
@@ -0,0 +1,33 @@
|
|
|
+name: Update POT
|
|
|
+on:
|
|
|
+ push:
|
|
|
+ branches: [ master ]
|
|
|
+ paths-ignore:
|
|
|
+ - 'locales/**'
|
|
|
+
|
|
|
+env:
|
|
|
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
+jobs:
|
|
|
+ run:
|
|
|
+
|
|
|
+ name: Update POT
|
|
|
+ permissions: write-all
|
|
|
+ runs-on: ubuntu-latest
|
|
|
+ steps:
|
|
|
+ - name: Checkout repo
|
|
|
+ uses: actions/checkout@v2
|
|
|
+
|
|
|
+ - name: install xgettext
|
|
|
+
|
|
|
+ run: sudo apt-get install gettext;
|
|
|
+ - name: Update POT
|
|
|
+ run: sh tools/extract_template.sh;
|
|
|
+
|
|
|
+
|
|
|
+ - name: Commit changes
|
|
|
+ uses: EndBug/add-and-commit@v5.1.0
|
|
|
+ with:
|
|
|
+ message: "Update POT"
|
|
|
+ - name: Push changes
|
|
|
+
|
|
|
+ uses: actions-go/push@v1
|