Skip to content

Commit

Permalink
Added posthog action
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrewster committed Apr 19, 2024
1 parent e23b412 commit 529d0c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/push_to_posthog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
PAYLOAD=$(cat <<EOF
{
"event": "repository_traffic",
"api_key": "$POSTHOG_API_KEY",
"properties": {
"clones": $CLONES,
"unique_clones": $UNIQUE_CLONES,
Expand All @@ -46,4 +47,4 @@ jobs:
)
# Send the payload to PostHog
curl -X POST -H "Authorization: Bearer ${{ secrets.POSTHOG_API_KEY }}" -H "Content-Type: application/json" -d "$PAYLOAD" "https://app.posthog.com/capture?api_key=${{ secrets.POSTHOG_API_KEY }}"
curl -X POST -H "Content-Type: application/json" -d "$PAYLOAD" "https://app.posthog.com/capture"

0 comments on commit 529d0c7

Please sign in to comment.