File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff 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'
68686969 # 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 {
Original file line number Diff line number Diff 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
70717172 # 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 {
You can’t perform that action at this time.
0 commit comments