/commit-author-action

Checks the email of the commit author

Primary LanguageTypeScript

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