Skip to content

Commit

Permalink
Send pdf reports from CI
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvinev committed Sep 29, 2023
1 parent 7973090 commit aa00677
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
python -m pip install --upgrade pip
pip install poetry
poetry install
sudo apt install language-pack-nb
sudo apt install -y language-pack-nb wkhtmltopdf
sudo dpkg-reconfigure locales
locale -a
- name: Generate reports
Expand All @@ -45,6 +45,7 @@ jobs:
name: zaptec-reports
path: |
*.html
*.pdf
- name: Send reports via e-mail
uses: dawidd6/action-send-mail@v3
with:
Expand All @@ -53,9 +54,9 @@ jobs:
secure: true
username: ${{ secrets.MAIL_USERNAME }}
password: ${{ secrets.MAIL_PASSWORD }}
subject: Github Actions job result
to: [email protected],[email protected]
from: Øyvind Evju # <[email protected]>
body: Build job of ${{github.repository}} completed successfully!
subject: Zaptec Cost reports are ready
to: [email protected]
from: Øyvind Evju
body: Zaptec Cost reports are attached
cc: [email protected]
attachments: "*.html"
attachments: "*.pdf"

0 comments on commit aa00677

Please sign in to comment.