Schedule product update announcement emails
Just show me the code
YOUR_EMAIL_ADDRESS
with a valid email address and YOUR_RESEND_API_KEY
with your Resend API key, and then you can run the following in your terminal:owner
and repo
names:
name
and body
markdown field for our email notification, and the release id
to reference the last notification that was sent.
Here’s how we could retrieve that data in TypeScript:
fetchLatestRelease
function above.state
to store the ID of last sent release, which we check against the current latest release.$set
key to update the state
of the job schedule, so that we can reference the last_sent_release
ID in
future jobs.Don't want to use React? Use `marked` instead
marked
library to parse the markdown into HTML:$state
to reference the last sent release ID: