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.
This commit is contained in:
@@ -29,7 +29,7 @@ jobs:
|
||||
go-version: "1.23.1"
|
||||
|
||||
- name: Install eec-campaigns
|
||||
run: go install gitea.reground.org/will/eec-campaigns@v0.1.4
|
||||
run: go install gitea.reground.org/will/eec-campaigns@v0.1.5
|
||||
|
||||
- name: Determine campaign slug
|
||||
id: slug
|
||||
|
||||
@@ -13,7 +13,7 @@ jobs:
|
||||
go-version: "1.23.1"
|
||||
|
||||
- name: Install eec-campaigns
|
||||
run: go install gitea.reground.org/will/eec-campaigns@v0.1.4
|
||||
run: go install gitea.reground.org/will/eec-campaigns@v0.1.5
|
||||
|
||||
- name: Sync template to listmonk
|
||||
run: eec-campaigns template "Thistle & Moth default" email-templates/campaign.html
|
||||
|
||||
@@ -14,7 +14,7 @@ jobs:
|
||||
go-version: "1.23.1"
|
||||
|
||||
- name: Install eec-campaigns
|
||||
run: go install gitea.reground.org/will/eec-campaigns@v0.1.4
|
||||
run: go install gitea.reground.org/will/eec-campaigns@v0.1.5
|
||||
|
||||
- name: Sync campaigns to listmonk
|
||||
run: eec-campaigns sync .
|
||||
|
||||
@@ -22,7 +22,7 @@ jobs:
|
||||
go-version: "1.23.1"
|
||||
|
||||
- name: Install eec-campaigns
|
||||
run: go install gitea.reground.org/will/eec-campaigns@v0.1.4
|
||||
run: go install gitea.reground.org/will/eec-campaigns@v0.1.5
|
||||
|
||||
- name: Send preview
|
||||
run: eec-campaigns test "${{ inputs.slug }}" "${{ inputs.email }}"
|
||||
|
||||
@@ -20,7 +20,7 @@ Alternatively, run the `Send campaign` workflow manually from Gitea Actions with
|
||||
|
||||
Repo secrets (Gitea Actions → Secrets) are already set: `CAMPAIGNS_LISTMONK_BASE_URL`, `CAMPAIGNS_LISTMONK_API_USER`, `CAMPAIGNS_LISTMONK_API_TOKEN` — scoped to a dedicated `campaigns-thistleandmoth` listmonk API user (see `reground-infrastructure`'s `campaigns-thistleandmoth` Ansible role). `CAMPAIGNS_PREVIEW_EMAIL` isn't set yet — add it (or rely on each campaign's own `preview_emails`) before the first real send.
|
||||
|
||||
The workflows in `.gitea/workflows/` pin a specific `eec-campaigns` version (currently `v0.1.0`). Bump that pin deliberately when a new tool version is ready, not automatically.
|
||||
The workflows in `.gitea/workflows/` pin a specific `eec-campaigns` version (currently `v0.1.5`). Bump that pin deliberately when a new tool version is ready, not automatically.
|
||||
|
||||
## Sending as hello@thistleandmoth.org
|
||||
|
||||
|
||||
Reference in New Issue
Block a user