Skip to content

Commit

Permalink
Add discord notification action
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubhabrata08 committed Mar 5, 2024
1 parent 927f0ea commit 575b9c5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/generateChangelogs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,17 @@ jobs:
echo "::set-output name=displayTimestamp::$(date +%Y-%m-%d\ %H:%M:%S)"
- name: Commit changes to repo
id: auto-commit-action
uses: stefanzweifel/git-auto-commit-action@v5
with:
repository: repo
branch: changelog-${{ steps.timestamp.outputs.timestamp }}
create_branch: true
commit_message: Changelog update on ${{ steps.timestamp.outputs.displayTimestamp }}
commit_message: Changelog update on ${{ steps.timestamp.outputs.displayTimestamp }}

- name: "Send Notification regarding changes"
uses: hunghg255/action-notifications@master
if: steps.auto-commit-action.outputs.changes_detected == 'true'
with:
discord_webhook: ${{ secrets.DISCORD_WEBHOOK }}
title: "Changelog changes detected !!"

0 comments on commit 575b9c5

Please sign in to comment.