Files
cateconners-campaigns/.gitea/workflows/test.yml
T
will 3ace3f72dc
Sync campaigns / sync (push) Successful in 17s
Bump eec-campaigns pin to v0.1.5
Fixes a spurious "changed" flag on any campaign without an explicit
template_id, which was re-syncing and re-previewing campaigns like
welcome/campaign.md on every unrelated push.
2026-08-13 11:38:26 -04:00

33 lines
904 B
YAML

name: Test-send campaign
on:
workflow_dispatch:
inputs:
slug:
description: "Campaign slug (campaigns/<slug>/) to preview"
required: true
type: string
email:
description: "Address to send the preview to"
required: true
type: string
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.23.1"
- name: Install eec-campaigns
run: go install gitea.reground.org/will/eec-campaigns@v0.1.5
- name: Send preview
run: eec-campaigns test "${{ inputs.slug }}" "${{ inputs.email }}"
env:
LISTMONK_BASE_URL: ${{ secrets.CAMPAIGNS_LISTMONK_BASE_URL }}
LISTMONK_API_USER: ${{ secrets.CAMPAIGNS_LISTMONK_API_USER }}
LISTMONK_API_TOKEN: ${{ secrets.CAMPAIGNS_LISTMONK_API_TOKEN }}