Skip to content

Beautiful Open-Source Form Builder

Update Discord Notifications workflow to trigger on push events to the main branch, enhancing notification management.

JhumanJbb071258e3d2
diff --git a/.github/workflows/discord-notifications.yml b/.github/workflows/discord-notifications.yml
index 30dd6f1a1..89b92828d 100644
--- a/.github/workflows/discord-notifications.yml
+++ b/.github/workflows/discord-notifications.yml
@@ -1,6 +1,8 @@
name: Discord Notifications Actions
on:
+ push:
+ branches: [main]
issues:
types: [opened, closed, reopened]
release:
@@ -9,6 +11,18 @@ on:
types: [opened, closed]
jobs:
+ push-notification:
+ if: github.event_name == 'push'
+ runs-on: ubuntu-latest
+ name: Push Notification
+ steps:
+ - name: Send Discord notification
+ uses: Ilshidur/[email protected]
+ env:
+ DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
+ with:
+ args: "⬆️ **Push to main** by ${{ github.actor }} - ${{ github.event.head_commit.message }} - [View Commit](${{ github.event.head_commit.url }})"
+
issue-notification:
if: github.event_name == 'issues'
runs-on: ubuntu-latest