Skip to content

Commit

Permalink
[build] Allow on detached HEAD (#3446)
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec authored Nov 14, 2024
1 parent 0c00a34 commit b2e6fb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/scripts/app_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def get_release() -> str:
num_commits = match[2]
# Get the branch name
result = run_cmd(["git", "branch", "--show-current"], chomp=True)
branch_name = re.sub("[/_]+", "-", result.stdout)
branch_name = re.sub("[/_]+", "-", result.stdout) or "HEADLESS"
return f"{release_string}-{branch_name}.{num_commits}"
message = f"Unrecognized release value in tag: {result.stdout}"
raise ValueError(message)
Expand Down

0 comments on commit b2e6fb4

Please sign in to comment.