Skip to content

Commit

Permalink
Do not use # in PR build names (#796)
Browse files Browse the repository at this point in the history
* Remove # from the productName, if set (affects save path)

* Remove # from the 'description'
  • Loading branch information
mikeage authored Dec 11, 2024
1 parent 26fea93 commit b9cd011
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ jobs:
else
if [[ ${{ github.ref }} == refs/pull/* ]]
then
DESCRIPTION="PR#$(echo ${{ github.ref }} | sed -e 's#refs/pull/##' -e 's#/merge##')"
DESCRIPTION="PR$(echo ${{ github.ref }} | sed -e 's#refs/pull/##' -e 's#/merge##')"
elif [[ ${{ github.ref }} == refs/heads/* ]]
then
DESCRIPTION="$(echo ${{ github.ref }} | sed -e 's#refs/heads/##')"
Expand Down
2 changes: 1 addition & 1 deletion Assets/Editor/BuildTiltBrush.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ public TempSetAppNames(BuildTarget target, string Description)
#endif
if (!String.IsNullOrEmpty(Description))
{
new_name += "-(" + Description + ")";
new_name += "-(" + Description.Replace("#", "") + ")";
new_identifier += "-" + Description.Replace("_", "").Replace("#", "").Replace("-", "");
}
if (m_IsAndroidOrIos)
Expand Down

0 comments on commit b9cd011

Please sign in to comment.