Skip to content

Commit a3d6351

Browse files
committed
improve discord message
1 parent 3935a44 commit a3d6351

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/build-ubuntu.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
run: |
6060
$status = if ("${{ job.status }}" -eq "success") { "Success" } else { "Failure" }
6161
$color = if ("${{ job.status }}" -eq "success") { 3066993 } else { 15158332 }
62-
$title = "Ubuntu build $status"
62+
$title = "Editor (Ubuntu) build $status"
6363
$runUrl = "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
6464
$payload = @{
6565
username = "GitHub Actions"
@@ -70,6 +70,7 @@ jobs:
7070
color = $color
7171
fields = @(
7272
@{ name = "Commit"; value = "${{ github.sha }}"; inline = $true }
73+
@{ name = "Message"; value = "${{ github.event.head_commit.message || github.event.pull_request.title }}"; inline = $false }
7374
@{ name = "Branch"; value = "${{ github.ref_name }}"; inline = $true }
7475
)
7576
}

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ jobs:
6969
run: |
7070
$status = if ("${{ job.status }}" -eq "success") { "Success" } else { "Failure" }
7171
$color = if ("${{ job.status }}" -eq "success") { 3066993 } else { 15158332 }
72-
$title = "Windows build $status (x64)"
72+
$title = "Editor (Windows) build $status (x64)"
7373
$runUrl = "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
74+
$downloadUrl = "https://s3.amazonaws.com/openfodder-builds/$env:ZIP_NAME"
7475
$payload = @{
7576
username = "GitHub Actions"
7677
embeds = @(
@@ -80,8 +81,10 @@ jobs:
8081
color = $color
8182
fields = @(
8283
@{ name = "Commit"; value = "${{ github.sha }}"; inline = $true }
84+
@{ name = "Message"; value = "${{ github.event.head_commit.message || github.event.pull_request.title }}"; inline = $false }
8385
@{ name = "Branch"; value = "${{ github.ref_name }}"; inline = $true }
8486
@{ name = "Config"; value = "Release"; inline = $true }
87+
@{ name = "Download"; value = $downloadUrl; inline = $false }
8588
)
8689
}
8790
)

0 commit comments

Comments
 (0)