Bump eec-campaigns to v0.1.7, scope sync to changed campaigns
Sync campaigns / sync (push) Successful in 18s

Only the campaign(s) whose files changed in this push get resolved and
diffed against listmonk now, instead of every campaign every time --
falls back to a full scan automatically if the before-commit can't be
determined. fetch-depth: 0 so that commit is always available to diff
against locally.
This commit is contained in:
2026-08-13 13:41:10 -04:00
parent 35cfd63945
commit c4de53f4bb
5 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -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.6 run: go install gitea.reground.org/will/eec-campaigns@v0.1.7
- name: Determine campaign slug - name: Determine campaign slug
id: slug id: slug
+1 -1
View File
@@ -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.6 run: go install gitea.reground.org/will/eec-campaigns@v0.1.7
- 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
+4 -2
View File
@@ -8,16 +8,18 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5 - uses: actions/setup-go@v5
with: with:
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.6 run: go install gitea.reground.org/will/eec-campaigns@v0.1.7
- name: Sync campaigns to listmonk - name: Sync campaigns to listmonk
run: eec-campaigns sync . run: eec-campaigns sync . "${{ gitea.event.before }}"
env: env:
LISTMONK_BASE_URL: ${{ secrets.CAMPAIGNS_LISTMONK_BASE_URL }} LISTMONK_BASE_URL: ${{ secrets.CAMPAIGNS_LISTMONK_BASE_URL }}
LISTMONK_API_USER: ${{ secrets.CAMPAIGNS_LISTMONK_API_USER }} LISTMONK_API_USER: ${{ secrets.CAMPAIGNS_LISTMONK_API_USER }}
+1 -1
View File
@@ -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.6 run: go install gitea.reground.org/will/eec-campaigns@v0.1.7
- name: Send preview - name: Send preview
run: eec-campaigns test "${{ inputs.slug }}" "${{ inputs.email }}" run: eec-campaigns test "${{ inputs.slug }}" "${{ inputs.email }}"
+1 -1
View File
@@ -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.6`). 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.7`). Bump that pin deliberately when a new tool version is ready, not automatically.
## Sending as hello@sunfloweracressoaps.com ## Sending as hello@sunfloweracressoaps.com