Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add discord notification action #71

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion .github/workflows/generateChangelogs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,24 @@ 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: Store new branch name
run: |
cd ./repo
echo "CURRENT_BRANCH=$(git branch --show-current)" >> $GITHUB_ENV

- 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 !!"
description: "Create a pull request using this link: https://https://github.com/microsoft/fluentui-charting-contrib/pull/new/${{ env.CURRENT_BRANCH }}"


Loading