Skip to content

Commit 2baf3d4

Browse files
committed
add email sending
1 parent 2e81c78 commit 2baf3d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/weekly_clone_stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
name: clone-stats
3636
path: clone_stats.json
3737

38-
print-stats:
38+
downloading-and-sending-stats:
3939
needs: fetch-clone-stats
4040
runs-on: ubuntu-latest
4141
steps:
@@ -70,10 +70,10 @@ jobs:
7070
-H "Content-Type: application/json" \
7171
-d '{
7272
"personalizations": [{
73-
"to": [{"email": $TO}],
73+
"to": [{"email": "$TO"}],
7474
"subject": "Weekly GitHub Clone Stats for $REPOSITORY"
7575
}],
76-
"from": {"email": $FROM},
76+
"from": {"email": "$FROM"},
7777
"content": [{
7878
"type": "text/plain",
7979
"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"

0 commit comments

Comments
 (0)