Skip to content

Commit

Permalink
fix release script nits
Browse files Browse the repository at this point in the history
  • Loading branch information
mhils committed Sep 4, 2024
1 parent 2e730cf commit d9a4a83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/release/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ def get_tag_name() -> str:
def http_get(url: str) -> http.client.HTTPResponse:
assert url.startswith("https://")
host, path = re.split(r"(?=/)", url.removeprefix("https://"), maxsplit=1)
logger.info(f"GET {host} {path}")
logger.info(f"GET https://{host}/{path}")
conn = http.client.HTTPSConnection(host)
conn.request("GET", path, headers={"User-Agent": "mhils/run-tools"})
resp = conn.getresponse()
print(f"HTTP {resp.status} {resp.reason}")
logger.info(f"HTTP {resp.status} {resp.reason}")
return resp


Expand Down
4 changes: 2 additions & 2 deletions .github/scripts/release/git_commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ def git_commit(message: str = ""):
subprocess.check_call(
[
"git",
*("-c", f"user.name={project} run bot"),
*("-c", "user.email=git-run[email protected]"),
*("-c", f"user.name={project} release bot"),
*("-c", "user.email=git-release[email protected]"),
"commit",
"--all",
*("-m", message or f"{project} {get_version()}"),
Expand Down

0 comments on commit d9a4a83

Please sign in to comment.