From 728a40102e1bce78debd4f29ff58869b1102d2c3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Tue, 18 Feb 2020 23:38:13 +0100 Subject: [PATCH] :wrench: use mail --- .github/workflows/coverage.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 2c8f6c64..558fa1f0 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -66,7 +66,7 @@ jobs: done - name: Push Report - if: github.event_name == 'push' + if: github.event_name == 'push' && github.event.ref = 'refs/head/master' run: | cd gwion-coverage-report git config --local user.email "action@github.com" @@ -82,3 +82,15 @@ jobs: git push origin :gh-pages || true git subtree push --prefix html origin gh-pages echo $GITHUB_EVENT_NAME $GITHUB_REF + + - name: Send mail + uses: dawidd6/action-send-mail@master + with: + server_address: smtp.gmail.com + server_port: 465 + username: ${{secrets.MAIL_USERNAME}} + password: ${{secrets.MAIL_PASSWORD}} + subject: Github Actions job result + body: file://README.md + to: ${{ github.event.repository.owner.email }},${{ github.event.pusher.email }} + from: Gwion Coverage action -- 2.43.0