Skip to content

Commit

Permalink
Check the contents of working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-rs committed Dec 23, 2024
1 parent 218d360 commit 3aa0e3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pipelines/templates/steps/publish-description.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ steps:
docker_repo ="${{ parameters.dockerhub_repo }}" or git_repo
readme_path = os.path.join("$(Pipeline.Workspace)/working", git_repo, "README.md")
print(git_repo, docker_repo, readme_path)
if os.path.exists(readme_path):
with open(readme_path) as f:
body = {
"full_description": f.read(),
}
else:
raise Exception(f"{__file__}:{readme_path} not found")
print(os.listdir("$(Pipeline.Workspace)/working"))
raise Exception(f"{readme_path} not found")
url = f"https://api.github.com/repos/CybercentreCanada/{git_repo}"
rsp = httpx.get(url)
Expand Down

0 comments on commit 3aa0e3a

Please sign in to comment.