Skip to content
mail

GitHub Action

Mailgun Template Action

v3.1 Latest version

Mailgun Template Action

mail

Mailgun Template Action

Mailgun Template creation and version management

Installation

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

              

- name: Mailgun Template Action

uses: gyto/mailgun-template-action@v3.1

Learn more about this action in gyto/mailgun-template-action

Choose a version

Mailgun Template Action

Mailgun Template creation and version management

Inputs

Key Required Description
html-file Yes Path to file containing the HTML email
mailgun-api-key Yes Mailgun Api Key
mailgun-domain Yes Mailgun domain is used for templates
mailgun-template Yes Mailgun template name

Example usage

- name: "Create password reset template"
  uses: gyto/mailgun-template-action@v2
  with:
    html-file: './build/register.html'
    mailgun-api-key: ${{ secrets.MAILGUN_KEY }}
    mailgun-domain: "mydomain.fansy.com",
    mailgun-template: "register-template"