parent
21f8606f7b
commit
ffe860b836
@ -1,19 +1,17 @@
|
||||
name: Send Discord webhook on push
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
push:
|
||||
branches:
|
||||
- main # Replace with the name of your branch
|
||||
|
||||
jobs:
|
||||
send-webhook:
|
||||
message:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Send Discord webhook
|
||||
uses: distributhor/discord-webhook-action@v1
|
||||
- name: Discord Webhook Action
|
||||
uses: tsickert/discord-webhook@v5.3.0
|
||||
with:
|
||||
url: ${{ secrets.DISCORD_WEBHOOK_URL }}
|
||||
payload: '{"content": "New commit pushed to repository"}'
|
||||
webhook-url: ${{ secrets.WEBHOOK_URL }}
|
||||
content: "Test"
|
||||
|
Loading…
Reference in New Issue