Create discord-notification.yml #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / Discord NotificationsInvalid workflow file
|
||
{ | ||
"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) }}" | ||
} |