ec5bd715b1
Sync campaigns / sync (push) Successful in 17s
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.
28 lines
777 B
YAML
28 lines
777 B
YAML
name: Sync campaigns
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
sync:
|
|
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.7
|
|
|
|
- name: Sync campaigns to listmonk
|
|
run: eec-campaigns sync . "${{ gitea.event.before }}"
|
|
env:
|
|
LISTMONK_BASE_URL: ${{ secrets.CAMPAIGNS_LISTMONK_BASE_URL }}
|
|
LISTMONK_API_USER: ${{ secrets.CAMPAIGNS_LISTMONK_API_USER }}
|
|
LISTMONK_API_TOKEN: ${{ secrets.CAMPAIGNS_LISTMONK_API_TOKEN }}
|
|
CAMPAIGNS_PREVIEW_EMAIL: ${{ secrets.CAMPAIGNS_PREVIEW_EMAIL }}
|