Skip to content

Merge pull request #169 from mikeyavorsky/fix-slack-links #112

Merge pull request #169 from mikeyavorsky/fix-slack-links

Merge pull request #169 from mikeyavorsky/fix-slack-links #112

name: send-newsletter
on:
push:
branches:
- master
jobs:
send-newsletter:
runs-on: ubuntu-latest
environment: newsletter
steps:
- uses: actions/checkout@v2
- run: ./.github/workflows/get_domain.sh
shell: bash
id: site-domain
- run: ./.github/workflows/commit-date.sh
shell: bash
id: commit-date
- name: Render newsletter
uses: ./.github/actions/render-newsletter
with:
posts_dir: "./_posts"
template_path: "./.github/workflows/newsletter_template.html"
sendgrid_list_id: "3ad415ef-d330-487b-94e2-7c60a34ae6f4"
sendgrid_api_key: ${{ secrets.SENDGRID_API_KEY }}
suppression_group_id: 17889
sendgrid_sender_id: 2072506
site_yaml: "./_config.yml"
subject_format: "[Code for Boston] %s"
slack_url: ${{ secrets.SLACK_URL }}
after_date: ${{ steps.commit-date.outputs.commit-date }}
send_at: "10:00-0500"
context: >-
{
"domain": "${{ steps.site-domain.outputs.domain }}"
}