Skip to content
This repository has been archived by the owner on Aug 25, 2019. It is now read-only.

wpapps/wp-pot-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ 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

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

Example Workflow File

workflow "Deploy" {
  resolves = ["WordPress Pot Generator"]
  on = "push"
}

action "WordPress Pot Generator" {
  uses = "varunsridharan/wordpress-pot-generator@master"
  env = {
    SAVE_PATH = "langs/filename.pot"
    ITEM_SLUG = "your-textdomain"
  }
  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