File tree 3 files changed +5
-3
lines changed
truss/contexts/image_builder
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 47
47
CURR_VERSION=$(curl https://pypi.org/pypi/truss/json | jq ".info.version")
48
48
PR_BODY="Updating Truss from [$CURR_VERSION](https://pypi.org/pypi/truss/json) to $INPUT_VERSION."
49
49
PR_URL=$(gh pr create --base release --head refs/heads/bump-version-$INPUT_VERSION --title "Release $INPUT_VERSION" --body "$PR_BODY")
50
- gh pr merge $PR_URL --auto --merge
51
50
env :
52
51
INPUT_VERSION : ${{ github.event.inputs.version }}
53
52
GH_TOKEN : ${{ secrets.BASETENBOT_GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " truss"
3
- version = " 0.6.3 "
3
+ version = " 0.6.4 "
4
4
description = " A seamless bridge from model development to model delivery"
5
5
license = " MIT"
6
6
readme = " README.md"
Original file line number Diff line number Diff line change @@ -23,8 +23,11 @@ def download_file(
23
23
storage_client = storage .Client .from_service_account_json (key_file )
24
24
bucket = storage_client .bucket (repo_name )
25
25
blob = bucket .blob (file_name )
26
+ dst_file = Path (f"{ cache_dir } /{ file_name } " )
27
+ if not dst_file .parent .exists ():
28
+ dst_file .parent .mkdir (parents = True )
26
29
# Download the blob to a file
27
- blob .download_to_filename (f" { cache_dir } / { file_name } " )
30
+ blob .download_to_filename (dst_file )
28
31
except Exception as e :
29
32
raise RuntimeError (f"Failure downloading file from GCS: { e } " )
30
33
else :
You can’t perform that action at this time.
0 commit comments