Skip to content

Reapply "modify symbols" #9

Reapply "modify symbols"

Reapply "modify symbols" #9

name: Monitor Localisation File Changes
on:
push:
branches:
- beta
- devGuideTranslatingSyms
paths:
- 'source/locale/en/*.dic'
jobs:
send_email:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get the diff
id: git_diff
run: |
git fetch origin
# Get the diff from the push
git diff -U0 ${{github.event.before}} ${{github.event.after}} -- source/locale/en/*.dic | grep '^[+-]'
- name: Send email
uses: dawidd6/action-send-mail@v4
with:
server_address: email-smtp.ap-southeast-2.amazonaws.com
server_port: 465
username: ${{ secrets.EMAIL_USERNAME }}
password: ${{ secrets.EMAIL_PASSWORD }}
subject: "Changes detected in localisation files"
to: sean@nvaccess.org # nvda-l10n@nvaccess.org
from: '"NVDA localisations" <nvda-l10n@nvaccess.org>'
html_body: file://.github/workflows/email-localisation-file-changes.md
convert_markdown: true
# TEMP: remove
# Optional nodemailerlog: true/false
nodemailerlog: true
# Optional nodemailerdebug: true/false if true lognodem will also be set true
nodemailerdebug: true