Update main.yml #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Send Email on Commit | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
send-email: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Send Email | |
uses: dawidd6/action-send-mail@v2 | |
with: | |
server_address: smtp.gmail.com | |
server_port: 587 | |
username: ${{ secrets.EMAIL_USERNAME }} | |
password: ${{ secrets.EMAIL_PASSWORD }} | |
subject: Commit Notification | |
to: ${{ secrets.EMAIL_TO }} | |
from: ${{ secrets.EMAIL_USERNAME }} | |
body: | | |
A new commit has been made to the repository on branch ${{ github.ref }}. | |
Commit message: ${{ github.event.head_commit.message }} | |
Committer: ${{ github.event.head_commit.committer.name }} | |
Commit URL: ${{ github.event.head_commit.url }} |