Coder Social home page Coder Social logo

h1dd3nsn1p3r / action-wordpress-pot-generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from iamdharmesh/action-wordpress-pot-generator

0.0 0.0 0.0 25 KB

Generates .pot file for your WordPress plugin or theme repository

License: MIT License

Shell 94.58% Dockerfile 5.42%

action-wordpress-pot-generator's Introduction

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. 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.

name: Generate POT file
on:
  push:
    branches:
      - develop

jobs:
  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 }}

action-wordpress-pot-generator's People

Contributors

iamdharmesh avatar odil-io avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.