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