Skip to content

Create discord-notification.yml #1

Create discord-notification.yml

Create discord-notification.yml #1

name: Discord Notifications
on:
push:
branches:
- main
pull_request:
types: [opened, reopened, closed]
issues:
types: [opened, edited, closed]
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Send Discord Notification
uses: fjogeleit/[email protected]
with:
url: https://discord.com/api/webhooks/1291641229796179969/A6hzDP7v2GLhXN3UQR1Jkng5g8p_ElxVIClsP7ZNhvmeZYHyFARJ7sbMvTpF4Ol0DYPB
method: POST
headers: '{"Content-Type": "application/json"}'
body: |

Check failure on line 23 in .github/workflows/discord-notification.yml

View workflow run for this annotation

GitHub Actions / Discord Notifications

Invalid workflow file

The workflow is not valid. .github/workflows/discord-notification.yml (Line: 23, Col: 17): Too many parameters supplied: '('. Located at position 7 within expression: toJson(github.event, 2)
{
"content": "### GitHub Event Notification\n\n" +
"**Event Type:** ${{ github.event_name }}\n" +
"**Repository:** ${{ github.repository }}\n" +
"**Actor:** ${{ github.actor }}\n" +
"**Details:**\n" +
"${{ toJson(github.event, 2) }}"
}