Checks commit's email with a given email domain.
NOTE: This action should be used with pull_request
or push
event
Required The domain of the email. Samples: "gmail.com"
, "@gmail.com"
.
Required Github token
Default "true"
"true"
Throws an error and fails workflow
"false"
Doesn't fails workflow, writes invalid emails as a warning
Returns true
or false
uses: semcelik/commit-author-action@master
with:
email_domain: 'gmail.com'
github_token: ${{ secrets.GITHUB_TOKEN }}
error_on_fail: 'false'