Skip to content

Commit 2d84a8d

Browse files
committed
initial commit
0 parents  commit 2d84a8d

7 files changed

Lines changed: 51124 additions & 0 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
.DS_Store

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Sendinblue Template Action
2+
3+
A github action for creating and updating Sendinblue email templates programtically
4+
5+
## Usage
6+
7+
Setup the action:
8+
9+
```yaml
10+
steps:
11+
- uses: Batchly-Ltd/sendinblue-template-action
12+
with:
13+
SENDINBLUE_API_KEY: ${{secrets.SENDINBLUE_API_KEY}}
14+
SENDER_NAME: "John Smith"
15+
SENDER_EMAIL: "john@smith.com"
16+
REPLY_TO: "no-reply@smith.com"
17+
templates: ./templates
18+
```
19+
20+
## templates
21+
22+
The `templates` variable should point to a directory of HTML templates to upload. This action will check for existing templates with the same name and update them, or create a new one.
23+
24+
You can set the subject line of each template with the following HTML code:
25+
26+
```
27+
<!-- subject: Put your subject here -->
28+
```

action.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Sendinblue Template Action
2+
description: Creates and updates email templates for Sendinblue
3+
4+
inputs:
5+
SENDINBLUE_API_KEY:
6+
description: Sendinblue API token
7+
required: true
8+
SENDER_NAME:
9+
description: Name of the sender for all templates
10+
required: true
11+
SENDER_EMAIL:
12+
description: Email of the sender for all templates
13+
required: true
14+
REPLY_TO:
15+
description: Reply to for all templates
16+
required: true
17+
templates:
18+
description: Directory of html templates
19+
required: true
20+
21+
runs:
22+
using: "node12"
23+
main: "dist/index.js"

0 commit comments

Comments
 (0)