Skip to content

Commit

Permalink
Disable keycloak user creation testing with github action
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsierro committed Oct 11, 2024
1 parent 7820431 commit 70ae54d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions members/signals.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import os

from django.db.models.signals import post_save
from django.dispatch import receiver

Expand All @@ -8,6 +10,9 @@

@receiver(post_save, sender=Member)
def member_post_save(sender, instance, created, **kwargs):
if os.getenv('GITHUB_ACTIONS') == 'true':
return

if not instance.is_staff:
return

Expand Down

0 comments on commit 70ae54d

Please sign in to comment.