File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 27
27
# Create empty comment file
28
28
echo "[]" > comments
29
29
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.
30
32
- 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 == ''
32
35
env :
33
36
COMMENT : >-
34
37
⚠️ We detected that you are using a GitHub private e-mail address to contribute to the repo.<br/>
39
42
[{"body" : "$COMMENT"}]
40
43
EOF
41
44
45
+ # Fail this job.
46
+ false
47
+
42
48
- uses : actions/upload-artifact@26f96dfa697d77e81fd5907df203aa23a56210a8 # v4.3.0
43
49
if : always()
44
50
with :
You can’t perform that action at this time.
0 commit comments