diff --git a/.github/workflows/pot.yml b/.github/workflows/pot.yml new file mode 100644 index 00000000..6600e3e1 --- /dev/null +++ b/.github/workflows/pot.yml @@ -0,0 +1,26 @@ +name: Generate POT file + +on: + push: + branches: + - master + workflow_dispatch: {} + +jobs: + generate-pot: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Install WP-POT-CLI + run: npm install --global wp-pot-cli + + - name: Generate POT file + run: script/generate-pot + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v3 + with: + commit-message: "Update POT file" + title: "Update POT file" \ No newline at end of file