8ee538dd67
Sync campaigns / sync (push) Failing after 17s
v0.1.4 fixes several bugs found while testing on twosquirrelspress-campaigns: - test-send failed validation on empty name/messenger fields (v0.1.1, v0.1.2) - campaigns went out HTML-only; listmonk never derives a plaintext alternative on its own, so altbody is now sent explicitly (v0.1.3) - change-detection now tracks altbody so campaigns synced before this fix actually pick it up on their next sync (v0.1.4) Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
26 lines
710 B
YAML
26 lines
710 B
YAML
name: Sync campaigns
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
sync:
|
|
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.4
|
|
|
|
- name: Sync campaigns to listmonk
|
|
run: eec-campaigns sync .
|
|
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 }}
|
|
CAMPAIGNS_PREVIEW_EMAIL: ${{ secrets.CAMPAIGNS_PREVIEW_EMAIL }}
|