We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba12c59 commit 8bc14abCopy full SHA for 8bc14ab
1 file changed
.github/workflows/push_discord.yml
@@ -1,10 +1,7 @@
1
name: discord message
2
on:
3
- # release:
4
- # types: [published]
5
- push:
6
- branches:
7
- - main
+ release:
+ types: [published]
8
9
jobs:
10
build:
@@ -38,8 +35,11 @@ jobs:
38
35
echo "EOF" >> $GITHUB_ENV
39
36
40
37
- name: Send to Discord
+ env:
+ DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL }}
+ DISCORD_USERNAME: Github Actions
41
+ DISCORD_AVATAR: https://cdn.discordapp.com/avatars/1460099944252702846/e57fd67dc7ca0cc840a0e87a82281bc5.webp?size=80
42
uses: Ilshidur/action-discord@0.4.0
43
with:
44
args: |
45
${{ env.DISCORD_MSG }}
-
0 commit comments