diff --git a/.github/workflows/host-test.yml b/.github/workflows/host-test.yml index e932097..f314a4b 100644 --- a/.github/workflows/host-test.yml +++ b/.github/workflows/host-test.yml @@ -79,6 +79,10 @@ jobs: GITHUB_REPOSITORY: ${{ github.repository }} PR_NUMBER: ${{ github.event.inputs.pr_number }} ARTIFACT_URL: ${{ env.artifact_url }} + ARTIFACT_ID: ${{ env.artifact_id }} + GITHUB_OWNER: snehilvj + FILE_FULLNAME: dash_mantine_components-${{ env.version }}.tar.gz + PACKAGE_NAME: dash_mantine_components run: | source .venv/bin/activate python tmp_deploy.py diff --git a/tmp_deploy.py b/tmp_deploy.py index 988d725..6ecc845 100644 --- a/tmp_deploy.py +++ b/tmp_deploy.py @@ -42,11 +42,11 @@ latest_time = modified_time latest_tar_gz = file_path -reqs['content'] += f'\n{os.getenv("ARTIFACT_URL")}' -files.append(reqs) +reqs['content'] += f'\n{os.getenv("PACKAGE_NAME")} @ https://py.cafe/gh/artifact/{os.getenv("GITHUB_OWNER")}/{os.getenv("GITHUB_REPOSITORY")}/{os.getenv("ARTIFACT_ID")}/{os.getenv("FILE_FULLNAME")}' def generate_link(files, code): json_object = { + "requirements": reqs['content'], "code": code, "files": files, } @@ -85,4 +85,4 @@ def post_comment(link): print("Comment added to the pull request.") # Call the function to post the comment -post_comment(link) +post_comment(link) \ No newline at end of file