aboutsummaryrefslogtreecommitdiffstats
path: root/.hooks/make_release_commit.py
diff options
context:
space:
mode:
authorRoy Sommer <royso@wix.com>2023-11-23 17:58:51 +0200
committerRoy Sommer <royso@wix.com>2023-11-23 17:58:51 +0200
commit90493b80ef4e48c90fe037bcb6c91f7cf119d355 (patch)
tree52a8db79bf7d69008ce6822c6311bf27a377980e /.hooks/make_release_commit.py
parentchange release script (diff)
downloadtaskipy2-90493b80ef4e48c90fe037bcb6c91f7cf119d355.zip
small fix to release script
Diffstat (limited to '.hooks/make_release_commit.py')
-rw-r--r--.hooks/make_release_commit.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/.hooks/make_release_commit.py b/.hooks/make_release_commit.py
index 2934cd2..6f329d4 100644
--- a/.hooks/make_release_commit.py
+++ b/.hooks/make_release_commit.py
@@ -13,14 +13,16 @@ def create_release_commit():
branch = f"release-{version}-{secrets.token_hex(12)}"
p = subprocess.Popen(
- " && ".join[
- f"git checkout -b {branch}",
- "git add .",
- f'git commit -m "Release version {version}"',
- f'git tag -a "{version}" -m "Release version {version}"',
- f"git push --set-upstream origin {branch}",
- f"git push --tags",
- ],
+ " && ".join(
+ [
+ f"git checkout -b {branch}",
+ "git add .",
+ f'git commit -m "Release version {version}"',
+ f'git tag -a "{version}" -m "Release version {version}"',
+ f"git push --set-upstream origin {branch}",
+ f"git push --tags",
+ ]
+ ),
shell=True,
cwd=cwd,
)