Skip to content
play

GitHub Action

Validate git author email

v1 Latest version

Validate git author email

play

Validate git author email

Validate that the git author email is in the list of allowed domains

Installation

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

              

- name: Validate git author email

uses: tfisicaro/commit-email-validation-action@v1

Learn more about this action in tfisicaro/commit-email-validation-action

Choose a version

Validate git author email

This action validates that the git author email is in the list of allowed domains.

Inputs

domains

Required The allowed domains that the author email must match.

Outputs

valid

The output of the pattern matching the author emails.

Example usage

uses: tfisicaro/commit-email-validation-action@v1
with:
  domains: 'microsoft.com;github.com'
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}