Skip to content

restore symbols

restore symbols #2

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
- 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: smtp.gmail.com
server_port: 587
username: ${{ env.EMAIL_USERNAME }}
password: ${{ secrets.EMAIL_PASSWORD }}
subject: "Changes detected in localisation files"
to: [email protected] # [email protected]
from: [email protected] # [email protected]
html_body: file://.github/workflows/email-localisation-file-changes.md