Skip to content

Commit

Permalink
renamed job artifact name
Browse files Browse the repository at this point in the history
  • Loading branch information
Zerskk committed Jul 10, 2024
1 parent 033141c commit 1a803f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/api/endpoints/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ async def metadata(publication: str = Header(..., description="Bearer token", in

try:
metadata = gitlab_api.get_job_artifact(project_id=project.id, branch="main", filename="metadata.json",
job_name="generate_metadata")
job_name="Publication Metadata")
print("got metadata from", metadata)
# print(metadata.title)
except:
Expand Down
2 changes: 1 addition & 1 deletion app/api/endpoints/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ async def publish_project(request: Request, background_tasks: BackgroundTasks,

try:
metadata = gitlab_api.get_job_artifact(project_id=project.id, branch="main", filename="metadata.json",
job_name="generate_metadata")
job_name="Publication Metadata")
except:
raise HTTPException(status_code=403, detail="No metadata available.")

Expand Down
2 changes: 1 addition & 1 deletion app/api/endpoints/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ async def status(authorization: str = Header(..., description="Bearer token", in

try:
metadata = gitlab_api.get_job_artifact(project_id=project.id, branch="main", filename="metadata.json",
job_name="generate_metadata")
job_name="Publication Metadata")
print(metadata.title)
except:
print("no metadata available")
Expand Down

0 comments on commit 1a803f1

Please sign in to comment.