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.
22 lines
648 B
YAML
22 lines
648 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 }}
|
|
embed-title: ${{ github.event.repository.name }}
|
|
embed-description: "A new commit has been pushed to the repository: \n${{ github.event.head_commit.message }}"
|
|
username: "Github Webhook"
|
|
avatar-url: https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
|