Skip to content

Commit 5e3c27d

Browse files
committed
ci: add discord 2000 split
1 parent 6091d0a commit 5e3c27d

2 files changed

Lines changed: 15 additions & 62 deletions

File tree

.github/workflows/push_discord.yml

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
name: discord message
22
on:
3-
push:
4-
branches:
5-
- main
6-
# release:
7-
# types: [published]
3+
release:
4+
types: [published]
85

96
jobs:
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:

.github/workflows/push_discord_debug.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)