Skip to content

Commit 066c742

Browse files
committed
Test failure event
1 parent c8f06a2 commit 066c742

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/e2e.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ jobs:
6464
PROJECT_ID: ${{ vars.PROJECT_ID }}
6565

6666
- name: Send failure event to PostHog
67-
if: ${{ failure() }}
67+
if: failure() && github.event_name == 'schedule'
6868
uses: PostHog/[email protected]
6969
# A CDP destination is set-up to alert when we get this event
7070
with:
71-
posthog-token: '${{ secrets.POSTHOG_API_TOKEN }}'
71+
posthog-token: '${{ secrets.NEXT_PUBLIC_POSTHOG_KEY }}'
7272
event: 'posthog-examples-repo-test-failure'
7373
properties: >-
7474
{

.github/workflows/integration.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,12 @@ jobs:
6666
NEXT_PUBLIC_POSTHOG_HOST: ${{ vars.NEXT_PUBLIC_POSTHOG_HOST }}
6767

6868
- name: Send failure event to PostHog
69-
if: ${{ failure() }}
69+
# if: failure() && github.event_name == 'schedule'
70+
if: true
7071
uses: PostHog/[email protected]
7172
# A CDP destination is set-up to alert when we get this event
7273
with:
73-
posthog-token: '${{ secrets.POSTHOG_API_TOKEN }}'
74+
posthog-token: '${{ secrets.NEXT_PUBLIC_POSTHOG_KEY }}'
7475
event: 'posthog-examples-repo-test-failure'
7576
properties: >-
7677
{

0 commit comments

Comments
 (0)