Skip to content

Commit

Permalink
Refactor entrypoint.py to extract repository name from GITHUB_REPOSIT…
Browse files Browse the repository at this point in the history
…ORY environment variable
  • Loading branch information
cedricdcc committed Sep 23, 2024
1 parent 0ebce2f commit 197b367
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ def get_rohub_url(rohub_id):

def get_rohub_id():
repo_name = os.getenv("GITHUB_REPOSITORY")
repo_name = repo_name.split("/")[-1]
print(f"Repository name: {repo_name}")
# search rohub for the project
projects_df = rohub.list_my_ros()

Expand Down

0 comments on commit 197b367

Please sign in to comment.