Skip to content

Commit

Permalink
Change to multi line string in the output
Browse files Browse the repository at this point in the history
  • Loading branch information
beyhan committed Jan 12, 2024
1 parent 6032888 commit 7fc310e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/org-inactive-user-management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 4 additions & 1 deletion org/org_user_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import datetime
import yaml
import os
import uuid

from org_management import OrgGenerator

Expand Down Expand Up @@ -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}")

0 comments on commit 7fc310e

Please sign in to comment.