Skip to content

Add write permissions to POT generation workflow. (#205) #5

Add write permissions to POT generation workflow. (#205)

Add write permissions to POT generation workflow. (#205) #5

Workflow file for this run

name: Generate POT
on:
push:
branches:
- main
- translations
jobs:
WP_POT_Generator:
if: github.repository == 'aspirepress/aspireupdate'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@master
- name: WordPress POT Generator
uses: varunsridharan/[email protected]
with:
save_path: "./languages"
item_slug: "${{ github.event.repository.name }}"
domain: "${{ github.event.repository.name }}"
package_name: "${{ github.event.repository.name }}"
headers: '{"Report-Msgid-Bugs-To":"https://github.com/${{ github.event.repository.full_name }}/issues"}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}