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 585ed3a commit 033141c
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="create metadata")
job_name="generate_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="create metadata")
job_name="generate_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="create metadata")
job_name="generate_metadata")
print(metadata.title)
except:
print("no metadata available")
Expand Down

0 comments on commit 033141c

Please sign in to comment.