Skip to content

Commit

Permalink
Improved subject and text in e-mail sent when job is run.
Browse files Browse the repository at this point in the history
  • Loading branch information
toddking committed Aug 17, 2021
1 parent f8d90f2 commit b50a454
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/validate-errors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,11 @@ jobs:
username: ${{ secrets.EMAIL_USERNAME }}
password: ${{ secrets.EMAIL_PASSWORD }}
# email subject
subject: ${{ steps.date.outputs.date }} ${{ github.job }} job of ${{ github.repository }} has ${{ job.status }}
subject: ${{ steps.date.outputs.date }} ${{ job.status }}: ${{ github.job }} run on ${{ github.repository }}
# email body as text
body: |
${{ github.job }} job in workflow ${{ github.workflow }} of ${{ github.repository }} has ${{ job.status }}
Run date: ${{ steps.date.outputs.date }}
${{ job.status }} of ${{ github.job }} run in workflow ${{ github.workflow }} of ${{ github.repository }}
""
For details see attachment.
# comma-separated string, send email to
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/validate-schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,11 @@ jobs:
username: ${{ secrets.EMAIL_USERNAME }}
password: ${{ secrets.EMAIL_PASSWORD }}
# email subject
subject: ${{ steps.date.outputs.date }} ${{ github.job }} job of ${{ github.repository }} has ${{ job.status }}
subject: ${{ steps.date.outputs.date }} ${{ job.status }}: ${{ github.job }} run on ${{ github.repository }}
# email body as text
body: |
${{ github.job }} job in workflow ${{ github.workflow }} of ${{ github.repository }} has ${{ job.status }}
Run date: ${{ steps.date.outputs.date }}
${{ job.status }} of ${{ github.job }} run in workflow ${{ github.workflow }} of ${{ github.repository }}
""
For details see attachment.
# comma-separated string, send email to
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,11 @@ jobs:
username: ${{ secrets.EMAIL_USERNAME }}
password: ${{ secrets.EMAIL_PASSWORD }}
# email subject
subject: ${{ steps.date.outputs.date }} ${{ github.job }} job of ${{ github.repository }} has ${{ job.status }}
subject: ${{ steps.date.outputs.date }} ${{ job.status }}: ${{ github.job }} run on ${{ github.repository }}
# email body as text
body: |
${{ github.job }} job in workflow ${{ github.workflow }} of ${{ github.repository }} has ${{ job.status }}
Run date: ${{ steps.date.outputs.date }}
${{ job.status }} of ${{ github.job }} run in workflow ${{ github.workflow }} of ${{ github.repository }}
""
For details see attachment.
# comma-separated string, send email to
Expand Down

0 comments on commit b50a454

Please sign in to comment.