Skip to content

Lan-Phan/commit-author-email-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Repository files navigation

commit-author-action

Test Runner

Checks commit's email with a given email domain.

NOTE: This action should be used with pull_request or push event

Inputs

email_domain

Required The domain of the email. Samples: "gmail.com", "@gmail.com".

github_token

Required Github token

error_on_fail

Default "true"

"true" Throws an error and fails workflow

"false" Doesn't fails workflow, writes invalid emails as a warning

Outputs

is_valid

Returns true or false

Example Usage

uses: semcelik/commit-author-action@master
with:
  email_domain: 'gmail.com'
  github_token: ${{ secrets.GITHUB_TOKEN }}
  error_on_fail: 'false'

Usage Samples

  • On Success image

  • On Fail

    • error_on_fail is true image

    • error_on_fail is false image

About

Checks the email of the committer / author

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 91.7%
  • JavaScript 8.3%