Skip to content

Merge pull request #777 from PRX/feat/dns-theworld-add-feed-subdomains #44

Merge pull request #777 from PRX/feat/dns-theworld-add-feed-subdomains

Merge pull request #777 from PRX/feat/dns-theworld-add-feed-subdomains #44

name: The World DNS Notifier
on:
push:
branches: [main]
paths: [dns/theworld.org-hosted-zone.yml]
permissions:
id-token: write
contents: read
jobs:
email:
runs-on: ubuntu-latest
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::561178107736:role/PRX-GHA-AccessRole
role-session-name: gha-theworld-dns-notify
- name: Send email
run: |
msg1="A change was made to the DNS zone template for theworld.org."
msg2="Details: https://github.com/PRX/Infrastructure/commits/main/dns/theworld.org-hosted-zone.yml"
msg="$msg1 $msg2"
aws ses send-email \
--region us-east-1 \
--from "${{secrets.MAIL_FROM}}" \
--to "${{secrets.MAIL_TO_THEWORLD_DNS}}" \
--cc "[email protected]" \
--subject "[DNS Change] theworld.org" \
--text "$msg"