name: Test-send campaign on: workflow_dispatch: inputs: slug: description: "Campaign slug (campaigns//) to preview" required: true type: string email: description: "Address to send the preview to" required: true type: string jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: go-version: "1.23.1" - name: Send preview run: go run . test "${{ inputs.slug }}" "${{ inputs.email }}" 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 }}