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
+4 -2
View File
@@ -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 }}