Skip to content

Commit 8bc14ab

Browse files
committed
ci: add discord 2000 split
1 parent ba12c59 commit 8bc14ab

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/push_discord.yml

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

96
jobs:
107
build:
@@ -38,8 +35,11 @@ jobs:
3835
echo "EOF" >> $GITHUB_ENV
3936
4037
- name: Send to Discord
38+
env:
39+
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL }}
40+
DISCORD_USERNAME: Github Actions
41+
DISCORD_AVATAR: https://cdn.discordapp.com/avatars/1460099944252702846/e57fd67dc7ca0cc840a0e87a82281bc5.webp?size=80
4142
uses: Ilshidur/action-discord@0.4.0
4243
with:
4344
args: |
4445
${{ env.DISCORD_MSG }}
45-

0 commit comments

Comments
 (0)