Skip to content

Commit

Permalink
Update discord.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfwithSword authored Nov 4, 2024
1 parent 39cd4f8 commit fd32282
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/discord.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,20 @@ jobs:
webhook-request:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
with:
fetch-depth: 0
- name: Send a request to webhook
run: |
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
RESPONSE=$(curl -H "Content-Type: application/json" -X POST -d '{
"username": "GitHub",
"content": "New Release!",
"embeds": [
{
"type": "rich",
"title": "New Release: ${{github.ref_name}}",
"title": "New Release: ${LATEST_TAG}",
"description": "New Release! Click to view changelog",
"color": 2123412,
"author": {
Expand Down

0 comments on commit fd32282

Please sign in to comment.