Skip to content

Commit 7c92364

Browse files
committed
20220920B
1 parent c7b97aa commit 7c92364

File tree

2 files changed

+14
-18
lines changed

2 files changed

+14
-18
lines changed

.github/workflows/announce-new-release-discord.yml

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,22 @@ jobs:
1818
> ${{github.event.repository.description}}
1919
2020
Version ${{github.event.release.name}} (${{github.event.release.tag_name}}) just released!
21+
timestamp: "${{github.event.release.published_at}}"
2122
color: "#0072C6"
2223
thumbnail:
2324
url: "https://i.imgur.com/OhKCMwk.png"
25+
author:
26+
name: "${{github.event.release.author.login}}"
27+
url: "${{github.event.release.author.html_url}}"
28+
icon_url: "${{github.event.release.author.avatar_url}}"
2429
fields:
25-
- name: "GitHub: ${{github.event.repository.full_name}}"
26-
value: "${{github.event.repository.html_url}}"
27-
inline: true
28-
- name: "GitHub Repository Release & Changelog"
29-
value: "${{github.event.release.html_url}}"
30-
inline: true
31-
- name: "PowerShell Gallery"
32-
value: "https://www.powershellgallery.com/packages/hugoalh.GitHubActionsToolkit"
33-
inline: true
34-
- name: "."
35-
value: "."
30+
- name: "Repositories"
31+
value: |
32+
**- GitHub (${{github.event.repository.full_name}}):** ${{github.event.repository.html_url}}
33+
inline: false
34+
- name: "Releases"
35+
value: |
36+
**- GitHub (& Changelog):** ${{github.event.repository.html_url}}
37+
**- PowerShell Gallery:** https://www.powershellgallery.com/packages/hugoalh.GitHubActionsToolkit
3638
inline: false
37-
- name: "Author"
38-
value: "${{github.event.release.author.login}}"
39-
inline: true
40-
- name: "Publish Time"
41-
value: "${{github.event.release.published_at}}"
42-
inline: true
4339
wait: "true"

hugoalh.GitHubActionsToolkit/module/cache.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Function Restore-Cache {
5151
}
5252
[String[]]$KeysProceed = @()
5353
If ($Key.Count -igt 10) {
54-
Write-Warning -Message 'Keys are limit to maximum count of 10! Only first 10 keys will use.'
54+
Write-Warning -Message 'Keys are limit to maximum count of 10! Only first 10 keys will be use.'
5555
$KeysProceed += $Key |
5656
Select-Object -First 10
5757
}

0 commit comments

Comments
 (0)