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 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/>
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 :
You can’t perform that action at this time.
0 commit comments