Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
edit

GitHub Action

Pot File Generator For WordPress

1.0

Pot File Generator For WordPress

edit

Pot File Generator For WordPress

This Action Generates POT Files for your wordpress Plugin / Theme based on the content inside Github Repo

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Pot File Generator For WordPress

uses: varunsridharan/action-wp-pot-generator@1.0

Learn more about this action in varunsridharan/action-wp-pot-generator

Choose a version

⚠️ Note: To use this GitHub Action, you must have access to GitHub Actions. GitHub Actions are currently only available in public beta. You can apply for Github Actions beta access here.

WordPress Pot Generator - Github Action

This Action Generates POT Files for your wordpress Plugin / Theme based on the content inside Github Repo

Configuration

Key Default Description
SAVE_PATH ./ Location / Path to save POT File Required
ITEM_SLUG NULL Slug of your WordPress Theme / Plugin Slug Required
DOMAIN NULL WordPress Theme / Plugin TextDomain
PACKAGE_NAME NULL WordPress Theme / Plugin Name
HEADERS NULL Array in JSON format of custom headers which will be added to the POT file. Defaults to empty array.
GITHUB_TOKEN secret you do not need to generate one but you do have to explicitly make it available to the Action

⚠️ Note: You Should Provide Github Token. If Not No Updated File Will Be Committed & Pushed

Example Workflow File

name: WordPress POT Generator

on:
  push:
    branches:
    - refs/tags/*

jobs:
  envatoftp:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: WordPress POT Generator
      uses: varunsridharan/action-wp-pot-generator@master
      with:
        save_path: './i8n'
        item_slug: 'wponion'
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Contribute

If you would like to help, please take a look at the list of issues or the To Do checklist.

License

Our GitHub Actions are available for use and remix under the MIT license.

Copyright

2017 - 2018 Varun Sridharan, varunsridharan.in

If you find it useful, let me know 😉

You can contact me on Twitter or through my email.

Backed By

DigitalOcean JetBrains Tidio Chat