Skip to content

pull

pull #3

Workflow file for this run

name: Discord PR Notification

Check failure on line 1 in .github/workflows/discord.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/discord.yml

Invalid workflow file

(Line: 7, Col: 1): 'on' is already defined
on:
pull_request:
types: [opened]
on:
push:
pull_request:
types: [opened]
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Send message to Discord
run: |
curl -X POST ${{ secrets.DISCORD_WEBHOOK }} \
-H "Content-Type: application/json" \
-d '{"content": "New PR created: ${{ github.event.pull_request.html_url }}"}'