Bump eec-campaigns to v0.1.7, scope sync to changed campaigns
Sync campaigns / sync (push) Successful in 18s
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:
@@ -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.6
|
||||
run: go install gitea.reground.org/will/eec-campaigns@v0.1.7
|
||||
|
||||
- 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.6
|
||||
run: go install gitea.reground.org/will/eec-campaigns@v0.1.7
|
||||
|
||||
- name: Sync template to listmonk
|
||||
run: eec-campaigns template "sunfloweracres default" email-templates/campaign.html
|
||||
|
||||
@@ -8,16 +8,18 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- 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.6
|
||||
run: go install gitea.reground.org/will/eec-campaigns@v0.1.7
|
||||
|
||||
- name: Sync campaigns to listmonk
|
||||
run: eec-campaigns sync .
|
||||
run: eec-campaigns sync . "${{ gitea.event.before }}"
|
||||
env:
|
||||
LISTMONK_BASE_URL: ${{ secrets.CAMPAIGNS_LISTMONK_BASE_URL }}
|
||||
LISTMONK_API_USER: ${{ secrets.CAMPAIGNS_LISTMONK_API_USER }}
|
||||
|
||||
@@ -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.6
|
||||
run: go install gitea.reground.org/will/eec-campaigns@v0.1.7
|
||||
|
||||
- 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`, `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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user