Skip to content

docs: correção textual #59

docs: correção textual

docs: correção textual #59

Workflow file for this run

name: Notify Branch Update
on:
push:
branches:
- main
- development
- feature/*
jobs:
send_email:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Generate HTML with variables
run: |
cat <<EOF > email.html
<!DOCTYPE html>
<html>
<head><meta charset="UTF-8"></head>
<body>
<h2>Branch Update Notification</h2>
<p><strong>Branch:</strong> ${GITHUB_REF_NAME}</p>
<p><strong>Commit:</strong> ${GITHUB_SHA}</p>
<p><strong>Author:</strong> ${AUTHOR}</p>
<p><strong>Message:</strong> ${MESSAGE}</p>
<p><strong>Date:</strong> ${DATE}</p>
</body>
</html>
EOF
env:
AUTHOR: ${{ github.event.head_commit.author.name }}
MESSAGE: ${{ github.event.head_commit.message }}
DATE: ${{ github.event.head_commit.timestamp }}
- name: Send Email
uses: dawidd6/action-send-mail@v6
with:
server_address: smtp.gmail.com
server_port: 465
secure: true
username: ${{ secrets.SMTP_USERNAME }}
password: ${{ secrets.SMTP_PASSWORD }}
from: "GitHub Notifier <${{ secrets.SMTP_USERNAME }}>"
# 👉 Enviar para múltiplos emails
to: "[email protected], [email protected]"
subject: "📧 Branch Updated: ${{ github.ref_name }}"
html_body: file://email.html