Skip to content

Commit

Permalink
update entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
zzstoatzz committed Jan 6, 2025
1 parent 9e142bc commit e6d9b0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
10 changes: 2 additions & 8 deletions prefect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,15 @@ definitions:
name: kubernetes-prd-internal-tools
job_variables:
image: prefecthq/prefect:3.1.11-python3.12

command: uv run --with git+https://github.com/PrefectHQ/prefect-collection-registry.git@revamp-registry-flow python -m prefect.engine
build:

push:

pull:
- prefect.deployments.steps.git_clone:
repository: https://github.com/PrefectHQ/prefect-collection-registry
repository: https://github.com/PrefectHQ/prefect-collection-registry.git
branch: revamp-registry-flow
- prefect.deployments.steps.run_shell_script:
script: |
ls -la
cd prefect-collection-registry
ls -la
uv sync --frozen

deployments:
- name: update-all-collections
Expand Down
5 changes: 3 additions & 2 deletions src/prefect_collection_registry/update_collection_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@ async def read_stream(stream: Any, buffer: list[str]) -> None:
async def update_all_collections(
branch_name: str = "update-metadata",
):
"""Checks all collections for releases and updates the metadata if needed."""
"""Updates all collections for releases and updates the metadata if needed."""
os.environ["GITHUB_TOKEN"] = await Secret.aload("gh-util-token").get() # type: ignore

if branch_name == "update-metadata": # avoid overwriting existing branches
branch_name = f"update-metadata-{DateTime.now().format('MM-DD-YYYY-HH-MM-SS')}"

Expand Down Expand Up @@ -257,5 +259,4 @@ async def update_all_collections(


if __name__ == "__main__":
os.environ["GITHUB_TOKEN"] = Secret.load("gh-util-token").get() # type: ignore
asyncio.run(update_all_collections())

0 comments on commit e6d9b0b

Please sign in to comment.