You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
647 B
YAML

name: Send Discord webhook on push
on:
workflow_dispatch:
push:
branches:
- main # Replace with the name of your branch
jobs:
message:
runs-on: ubuntu-latest
steps:
- name: Discord Webhook Action
uses: tsickert/discord-webhook@v5.3.0
with:
webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}
content: '{ "content": "New commit pushed to repository", "embeds": [{ "title": ${{ github.event.head_commit.message }}, "description": "A new commit has been pushed to the repository.", "url": "https://cursedcreationsteam.github.io", "color": 123456,"footer": { "text": "Push Notification" }}]}'