Install the send.io CLI on any GitHub Actions runner with send-io/setup-sendio, and send email from your pipelines.
Status: Live. Category: Developer tools.
send-io/setup-sendio installs the send.io CLI on a Linux, macOS or Windows runner and puts sendio on the path.SENDIO_API_KEY.--wait delivered, the step fails if the email bounces.version: the sendio version to install. The default is latest.api-key: exported, masked, as SENDIO_API_KEY for later steps.repo: the GitHub repository that hosts the sendio releases. The default is send-io/cli.github-token: used to look up the latest release. The default is the job's token.version: the installed version.path: the path of the binary.Create a key on the API keys page and store it as the repository secret SENDIO_API_KEY.
The action installs sendio and exports the key for the steps after it.
.github/workflows/notify.yml
- uses: send-io/setup-sendio@v1
with:
api-key: ${{ secrets.SENDIO_API_KEY }}
Every later step can call the CLI.
- run: sendio --version
Email a pipeline sends shows up in the console like any other email.
In any GitHub Actions workflow, on Linux, macOS or Windows runners (x64 or ARM64).
--wait delivered fails the step if the email bounces.
on:
push:
branches: [main]
jobs:
notify:
runs-on: ubuntu-latest
steps:
- uses: send-io/setup-sendio@v1
with:
api-key: ${{ secrets.SENDIO_API_KEY }}
- run: |
sendio emails send \
--from "Deploys <deploys@yourdomain.com>" \
--to team@yourdomain.com \
--subject "Deployed ${GITHUB_SHA::7}" \
--text "${GITHUB_REPOSITORY} at ${GITHUB_SHA} was deployed by ${GITHUB_ACTOR}." \
--wait delivered
Push the templates in ./emails on every run.
- uses: actions/checkout@v4
- uses: send-io/setup-sendio@v1
with:
api-key: ${{ secrets.SENDIO_API_KEY }}
- run: sendio templates push ./emails
Is it on the GitHub Marketplace?
Not yet. Use it by name: send-io/setup-sendio@v1.
Which runners does it support?
Linux, macOS and Windows, x64 or ARM64.
Which version of the CLI does it install?
The latest release, unless you set version.
Loading your dashboard