Checks a pull request commits authors according to the email domain. It pass if it's not triggered on a pull request event.
Required email pattern. For example: "^.*@required\.com$".
Email pattern to be ignored on check.. For example: "^.*@ignored\.com$".
Required github token to read the repository pull request.
name: Check PR commits authors example
on:
pull_request:
jobs:
check-commits-authors:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: profusion/check-pr-commits-authors-action@main
with:
EMAIL_PATTERN: ${{ vars.EMAIL_PATTERN }}
IGNORED_EMAIL_PATTERN: ${{ vars.IGNORED_EMAIL_PATTERN }} # this one is not required