Skip to content

Commit

Permalink
Skip adding README content if it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-rs committed Dec 23, 2024
1 parent 238c977 commit fd94c1b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 9 additions & 0 deletions pipelines/full-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,16 @@ stages:
CONTAINER_NAME: assemblyline-ui
UI-plugin-lookup-assemblyline:
CONTAINER_NAME: assemblyline-ui-plugin-lookup-assemblyline
DIRECTORY: assemblyline-ui
README_PATH: plugins/external_lookup/assemblyline_lookup
UI-plugin-lookup-malwarebazaar:
CONTAINER_NAME: assemblyline-ui-plugin-lookup-malwarebazaar
DIRECTORY: assemblyline-ui
README_PATH: plugins/external_lookup/malware_bazaar
UI-plugin-lookup-virustotal:
CONTAINER_NAME: assemblyline-ui-plugin-lookup-virustotal
DIRECTORY: assemblyline-ui
README_PATH: plugins/external_lookup/virustotal
UI-frontend:
CONTAINER_NAME: assemblyline-ui-frontend
SocketIO:
Expand All @@ -231,6 +237,8 @@ stages:
DIRECTORY: assemblyline-v4-service
Sample-Service:
CONTAINER_NAME: assemblyline-service-resultsample
DIRECTORY: assemblyline-v4-service
README_PATH: assemblyline-v4-service/assemblyline_result_sample_service/README.md
steps:
- checkout: none
- task: Docker@2
Expand Down Expand Up @@ -295,6 +303,7 @@ stages:
parameters:
dockerhub_repo: $(CONTAINER_NAME)
github_repo: $(github_repo)
readme


- job: update_odm_docs
Expand Down
3 changes: 1 addition & 2 deletions pipelines/templates/steps/publish-description.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ steps:
"full_description": f.read(),
}
else:
print(os.listdir("$(Pipeline.Workspace)/working"))
raise Exception(f"{readme_path} not found")
exit()
url = f"https://api.github.com/repos/CybercentreCanada/{git_repo}"
rsp = httpx.get(url)
Expand Down

0 comments on commit fd94c1b

Please sign in to comment.