Skip to content

Manual Resend Test

Manual Resend Test #2

Workflow file for this run

name: Manual Resend Test
# Fire a real test email through this action to verify it works end to end.
# Trigger from the GitHub UI: Actions -> "Manual Resend Test" -> "Run workflow".
#
# Prerequisite: add a repository secret named RESEND_API_KEY
# (Settings -> Secrets and variables -> Actions -> New repository secret).
# The secret is auto-masked by GitHub and never printed to the logs.
on:
workflow_dispatch:
inputs:
to:
description: 'Recipient email(s), comma-separated'
required: true
from:
description: 'Sender, e.g. Acme <noreply@your-verified-domain.com>'
required: true
subject:
description: 'Email subject'
required: true
html:
description: 'HTML body of the email'
required: true
default: '<h1>Test</h1><p>Hello from resend-action 👋</p>'
text:
description: 'Optional plain-text body'
required: false
default: ''
cc:
description: 'Optional CC recipient(s), comma-separated'
required: false
default: ''
bcc:
description: 'Optional BCC recipient(s), comma-separated'
required: false
default: ''
reply_to:
description: 'Optional Reply-To address(es), comma-separated'
required: false
default: ''
jobs:
send:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '24'
# Build from src so the test exercises the current source, not a stale dist/.
- name: Build action from source
run: |
npm ci
npm run build
- name: Send test email
uses: ./
with:
resend_api_key: ${{ secrets.RESEND_API_KEY }}
to: ${{ inputs.to }}
from: ${{ inputs.from }}
subject: ${{ inputs.subject }}
html: ${{ inputs.html }}
text: ${{ inputs.text }}
cc: ${{ inputs.cc }}
bcc: ${{ inputs.bcc }}
reply_to: ${{ inputs.reply_to }}