Skip to content

Commit 261a778

Browse files
committed
add email sending
1 parent f78dc62 commit 261a778

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/weekly_clone_stats.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,18 +64,18 @@ jobs:
6464
COUNT=${{ steps.parse.outputs.count }}
6565
REPOSITORY=${{ github.repository }}
6666
UNIQUES=${{ steps.parse.outputs.uniques }}
67-
67+
6868
curl -X POST https://api.sendgrid.com/v3/mail/send \
6969
-H "Authorization: Bearer $ENCODED_AUTH" \
7070
-H "Content-Type: application/json" \
71-
-d '{
72-
"personalizations": [{
73-
"to": [{"email": "$TO"}],
74-
"subject": "Weekly GitHub Clone Stats for $REPOSITORY"
71+
-d "{
72+
\"personalizations\": [{
73+
\"to\": [{\"email\": \"${TO}\"}],
74+
\"subject\": \"Weekly GitHub Clone Stats for ${REPOSITORY}\"
7575
}],
76-
"from": {"email": "[email protected]"},
77-
"content": [{
78-
"type": "text/plain",
79-
"value": "Hi there! Here are the clone stats for $REPOSITORY this week:\n\n🔁 Total Clones: $COUNT\n👤 Unique Cloners: $UNIQUES\n\n– GitHub Bot"
76+
\"from\": {\"email\": \"${FROM}\"},
77+
\"content\": [{
78+
\"type\": \"text/plain\",
79+
\"value\": \"Hi there! Here are the clone stats for ${REPOSITORY} this week:\n\n🔁 Total Clones: ${COUNT}\n👤 Unique Cloners: ${UNIQUES}\n\n– GitHub Bot\"
8080
}]
81-
}'
81+
}"

0 commit comments

Comments
 (0)