Skip to content

Commit 1ae220b

Browse files
committed
fix script again
1 parent b38dafe commit 1ae220b

2 files changed

Lines changed: 14 additions & 6 deletions

File tree

.github/workflows/linux-build.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,14 @@ jobs:
6363
if (-not $artifactUrl) { $artifactUrl = "N/A" }
6464
$commitMessage = @'
6565
${{ github.event.head_commit.message }}
66-
'@.Trim()
67-
if (-not $commitMessage) { $commitMessage = @'
66+
'@
67+
$commitMessage = $commitMessage.Trim()
68+
if (-not $commitMessage) {
69+
$commitMessage = @'
6870
${{ github.event.pull_request.title }}
69-
'@.Trim() }
71+
'@
72+
$commitMessage = $commitMessage.Trim()
73+
}
7074
if (-not $commitMessage) { $commitMessage = "N/A" }
7175
$payload = @{
7276
username = "GitHub Actions"

.github/workflows/windows-build.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,14 @@ jobs:
151151
$artifactUrl = "https://s3.amazonaws.com/openfodder-builds/OpenFodder-${{ matrix.arch }}-${{ matrix.configuration }}-latest.zip"
152152
$commitMessage = @'
153153
${{ github.event.head_commit.message }}
154-
'@.Trim()
155-
if (-not $commitMessage) { $commitMessage = @'
154+
'@
155+
$commitMessage = $commitMessage.Trim()
156+
if (-not $commitMessage) {
157+
$commitMessage = @'
156158
${{ github.event.pull_request.title }}
157-
'@.Trim() }
159+
'@
160+
$commitMessage = $commitMessage.Trim()
161+
}
158162
if (-not $commitMessage) { $commitMessage = "N/A" }
159163
$payload = @{
160164
username = "GitHub Actions"

0 commit comments

Comments
 (0)