Skip to content

Commit 93b0594

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

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/email-check.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ jobs:
2727
# Create empty comment file
2828
echo "[]" > comments
2929
30+
# If author's email is hidden in GH's settings, github.event.pull_request.user.email
31+
# will be null and PR will be authored by noreply.github.com.
3032
- name: Validate author email
31-
if: ${{ endsWith(steps.author.outputs.EMAIL, 'noreply.github.com') }}
33+
if: endsWith(steps.author.outputs.EMAIL, 'noreply.github.com') ||
34+
github.event.pull_request.user.email == ''
3235
env:
3336
COMMENT: >-
3437
⚠️ We detected that you are using a GitHub private e-mail address to contribute to the repo.<br/>
@@ -39,6 +42,9 @@ jobs:
3942
[{"body" : "$COMMENT"}]
4043
EOF
4144
45+
# Fail this job.
46+
false
47+
4248
- uses: actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 #v4.3.0
4349
if: always()
4450
with:

0 commit comments

Comments
 (0)