Skip to content

Commit

Permalink
fix email null
Browse files Browse the repository at this point in the history
  • Loading branch information
wjz304 committed Mar 31, 2024
1 parent 31b6a1c commit de2e8ae
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand All @@ -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
Expand Down

0 comments on commit de2e8ae

Please sign in to comment.