File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : discord message
22on :
3- push :
4- branches :
5- - main
6- # release:
7- # types: [published]
3+ release :
4+ types : [published]
85
96jobs :
10- build :
7+ notify :
118 runs-on : ubuntu-latest
129 steps :
1310 - name : Checkout code
@@ -18,21 +15,21 @@ jobs:
1815 run : |
1916 full_msg="🚀 **New Release!** ${{ github.event.release.name }}
2017
21- **Tag:** ${{ github.event.release.tag_name }}
22- **Author:** ${{ github.event.release.author.login }}
18+ **Tag:** ${{ github.event.release.tag_name }}
19+ **Author:** ${{ github.event.release.author.login }}
2320
24- **Release Notes:**
25- ${{ github.event.release.body }}"
21+ **Release Notes:**
22+ ${{ github.event.release.body }}"
2623
27- if [ ${#full_msg} -gt 1990 ]; then
28- truncated_msg="${full_msg:0:1987}..."
29- else
30- truncated_msg="$full_msg"
31- fi
24+ if [ ${#full_msg} -gt 1990 ]; then
25+ truncated_msg="${full_msg:0:1987}..."
26+ else
27+ truncated_msg="$full_msg"
28+ fi
3229
33- echo "message<<EOF" >> "$GITHUB_OUTPUT"
34- echo "$truncated_msg" >> "$GITHUB_OUTPUT"
35- echo "EOF" >> "$GITHUB_OUTPUT"
30+ echo "message<<EOF" >> "$GITHUB_OUTPUT"
31+ echo "$truncated_msg" >> "$GITHUB_OUTPUT"
32+ echo "EOF" >> "$GITHUB_OUTPUT"
3633
3734 - name : Send to Discord
3835 env :
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments