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"
|
go-version: "1.23.1"
|
||||||
|
|
||||||
- name: Install eec-campaigns
|
- 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
|
- name: Determine campaign slug
|
||||||
id: slug
|
id: slug
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ jobs:
|
|||||||
go-version: "1.23.1"
|
go-version: "1.23.1"
|
||||||
|
|
||||||
- name: Install eec-campaigns
|
- 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
|
- name: Sync template to listmonk
|
||||||
run: eec-campaigns template "sunfloweracres default" email-templates/campaign.html
|
run: eec-campaigns template "sunfloweracres default" email-templates/campaign.html
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ jobs:
|
|||||||
go-version: "1.23.1"
|
go-version: "1.23.1"
|
||||||
|
|
||||||
- name: Install eec-campaigns
|
- 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
|
- name: Sync campaigns to listmonk
|
||||||
run: eec-campaigns sync .
|
run: eec-campaigns sync .
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ jobs:
|
|||||||
go-version: "1.23.1"
|
go-version: "1.23.1"
|
||||||
|
|
||||||
- name: Install eec-campaigns
|
- 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
|
- name: Send preview
|
||||||
run: eec-campaigns test "${{ inputs.slug }}" "${{ inputs.email }}"
|
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`, `CAMPAIGNS_PREVIEW_EMAIL` (`hello@sunfloweracressoaps.com`, also a confirmed subscriber on `sunfloweracres-list` so test-sends have somewhere to go) — scoped to a dedicated `campaigns-sunfloweracres` listmonk API user (see `reground-infrastructure`'s `campaigns-sunfloweracres` Ansible role).
|
Repo secrets (Gitea Actions → Secrets) are already set: `CAMPAIGNS_LISTMONK_BASE_URL`, `CAMPAIGNS_LISTMONK_API_USER`, `CAMPAIGNS_LISTMONK_API_TOKEN`, `CAMPAIGNS_PREVIEW_EMAIL` (`hello@sunfloweracressoaps.com`, also a confirmed subscriber on `sunfloweracres-list` so test-sends have somewhere to go) — scoped to a dedicated `campaigns-sunfloweracres` listmonk API user (see `reground-infrastructure`'s `campaigns-sunfloweracres` Ansible role).
|
||||||
|
|
||||||
The workflows in `.gitea/workflows/` pin a specific `eec-campaigns` version (currently `v0.1.4`). 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@sunfloweracressoaps.com
|
## Sending as hello@sunfloweracressoaps.com
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user