Skip to content

Commit 178d1e6

Browse files
committed
Fix workflow
Signed-off-by: Agarwal, Udit <[email protected]>
1 parent 252b37f commit 178d1e6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/email-check.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,14 @@ jobs:
2626
echo "EMAIL=$(git show -s --format='%ae' HEAD~0)" >> $GITHUB_OUTPUT
2727
# Create empty comment file
2828
echo "[]" > comments
29+
echo "Author's emal from last commit: $(git show -s --format='%ae' HEAD~0)"
30+
echo "Author's email from GH email settings: ${{ github.event.pull_request.user.email }}"
2931
32+
# If author's email is hidden in GH's settings, github.event.pull_request.user.email
33+
# will be null and PR will be authored by noreply.github.com.
3034
- name: Validate author email
31-
if: ${{ endsWith(steps.author.outputs.EMAIL, 'noreply.github.com') }}
35+
if: ${{ endsWith(steps.author.outputs.EMAIL, 'noreply.github.com') ||
36+
github.event.pull_request.user.email == ""}}
3237
env:
3338
COMMENT: >-
3439
⚠️ We detected that you are using a GitHub private e-mail address to contribute to the repo.<br/>

0 commit comments

Comments
 (0)