fix email null

This commit is contained in:
Ing 2024-03-31 08:20:55 +08:00
parent 671783a3c9
commit 8b869d2224

View File

@ -189,7 +189,7 @@ jobs:
echo "TTDLURL=${TTDLURL}" >> $GITHUB_ENV
- name: Send mail
if: env.iscustom == 'true' && success()
if: env.iscustom == 'true' && success() && env.EMAIL != 'null'
uses: dawidd6/action-send-mail@v3
with:
server_address: smtp-mail.outlook.com
@ -203,7 +203,7 @@ jobs:
${{ env.TTDLURL }}
- name: Update Comment Success
if: env.iscustom == 'true' && success()
if: env.iscustom == 'true' && success() && env.EMAIL != 'null'
uses: actions-cool/issues-helper@v3
with:
actions: 'update-comment'
@ -217,6 +217,21 @@ jobs:
----
emoji: hooray
- name: Update Comment Success
if: env.iscustom == 'true' && success() && env.EMAIL == 'null'
uses: actions-cool/issues-helper@v3
with:
actions: 'update-comment'
token: ${{ secrets.GITHUB_TOKEN }}
comment-id: ${{ steps.comment.outputs.comment-id }}
update-mode: replace
body: |
Hi @${{ github.event.issue.user.login }}.
${{ env.TTDLURL }}
> ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
----
emoji: hooray
- name: Update Comment Fail
if: env.iscustom == 'true' && failure()
uses: actions-cool/issues-helper@v3