Skip to content

Commit

Permalink
adjustments for GHA flow
Browse files Browse the repository at this point in the history
  • Loading branch information
BSd3v committed Oct 10, 2024
1 parent 84a9c9c commit 8acdc25
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/host-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ 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
run: |
source .venv/bin/activate
python tmp_deploy.py
6 changes: 3 additions & 3 deletions tmp_deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down Expand Up @@ -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)

0 comments on commit 8acdc25

Please sign in to comment.