diff --git a/.github/workflows/org-inactive-user-management.yml b/.github/workflows/org-inactive-user-management.yml index 678deaa2..91a93818 100644 --- a/.github/workflows/org-inactive-user-management.yml +++ b/.github/workflows/org-inactive-user-management.yml @@ -6,7 +6,7 @@ on: workflow_dispatch: push: branches: - - "test-add-inactive-user-removal-automation" + - "add-inactive-user-removal-automation" jobs: org-config-generation-check: diff --git a/org/org_user_management.py b/org/org_user_management.py index a7418f49..ad2687ae 100644 --- a/org/org_user_management.py +++ b/org/org_user_management.py @@ -3,6 +3,7 @@ import datetime import yaml import os +import uuid from org_management import OrgGenerator @@ -160,7 +161,9 @@ def _get_bool_env_var(env_var_name, default): elif users_to_delete: userHandler.delete_inactive_contributors(users_to_delete) with open(os.environ["GITHUB_OUTPUT"], "a") as env: - print(f"inactive_users_pr_description={inactive_users_msg}", file=env) + separator = uuid.uuid1() + step_output_name = "inactive_users_pr_description" + print(f"{step_output_name}<<{separator}\n{inactive_users_msg}\n{separator}", file=env) inactive_users_with_role = community_members_with_role.intersection(inactive_users) print(f"Inactive users with role length is {len(inactive_users_with_role)} and users are {inactive_users_with_role}")