restore symbols #2
Workflow file for this run
This file contains hidden or 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: 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 |