Skip to content

Commit

Permalink
don't use a shell
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Oct 5, 2024
1 parent 6ff422c commit 08f3fe5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/increment_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ def get_changelog(
anything was changed in the CHANGELOG.md"""
old = ""
changelog = Path("CHANGELOG.md")
if full and changelog.exists():
if not changelog.exists():
changelog.write_bytes(b"")
if full:
old = changelog.read_text(encoding="utf-8")
output = changelog
exe_name = "git-cliff"
Expand All @@ -121,7 +123,6 @@ def get_changelog(
args + ["--output", output],
env={"FIRST_COMMIT": first_commit},
check=True,
shell=True,
)
if full:
new = changelog.read_text(encoding="utf-8")
Expand Down

0 comments on commit 08f3fe5

Please sign in to comment.