Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iamdharmesh/action-wordpress-pot-generator
Generates .pot file for your WordPress plugin or theme repository
https://github.com/iamdharmesh/action-wordpress-pot-generator
github-actions hacktoberfest pot wordpress
Last synced: about 1 month ago
JSON representation
Generates .pot file for your WordPress plugin or theme repository
- Host: GitHub
- URL: https://github.com/iamdharmesh/action-wordpress-pot-generator
- Owner: iamdharmesh
- License: mit
- Created: 2020-12-25T17:29:05.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-20T16:58:31.000Z (over 2 years ago)
- Last Synced: 2024-11-01T17:51:43.375Z (about 2 months ago)
- Topics: github-actions, hacktoberfest, pot, wordpress
- Language: Shell
- Homepage:
- Size: 24.4 KB
- Stars: 12
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WordPress .pot File Generator - Github Action
This Action generates .pot file for your WordPress plugin or theme repository## Configuration
### Required secrets
* `GITHUB_TOKEN`[Secrets are set in your repository settings](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets). They cannot be viewed once stored.
### Other optional configuration
| Key | Default | Description |
| --- | ------- | ----------- |
| `destination_path` | ./languages | Destination path to save generated POT File |
| `slug` | Github repo name | Slug of your WordPress Plugin/Theme |
| `text_domain` | Slug of Plugin/Theme | Text Domain of WordPress Theme / Plugin |## Example Workflow File
To get started, you will want to copy the contents of one of these examples into `.github/workflows/main.yml` and push that to your repository. You are welcome to name the file something else.
```yml
name: Generate POT file
on:
push:
branches:
- developjobs:
WP_Generate_POT_File:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: WordPress .pot File Generator
uses: iamdharmesh/action-wordpress-pot-generator@main
with:
destination_path: './languages'
slug: 'SLUG_OF_PLUGIN_OR_THEME'
text_domain: 'TEXT_DOMAIN_OF_PLUGIN_OR_THEME'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```