Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
soulsyrup committed Dec 11, 2023
1 parent c4408bf commit cf16791
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/discord_notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Send Discord notification to Server 1
env:
DISCORD_WEBHOOK_ID: ${{ secrets.DISCORD_DEV_SERVER_ID }}
DISCORD_WEBHOOK_TOKEN: ${{ secrets.DISCORD_DEV_SERVER_TOKEN }}
run: |
COMMIT_MESSAGE=$(git log -1 --pretty=format:"%s")
COMMIT_AUTHOR=$(git log -1 --pretty=format:"%an")
COMMIT_DESCRIPTION=$(git log -1 --pretty=format:"%b")
curl -X POST -H "Content-Type: application/json" -d "{ \"content\": \"New commit by $COMMIT_AUTHOR! Check out the latest changes: https://github.com/Metaverse-Crowdsource/DarkFlow/commits/${{ github.sha }}\", \"embeds\": [ { \"title\": \"$COMMIT_MESSAGE\", \"description\": \"$COMMIT_DESCRIPTION\" } ] }" https://discord.com/api/webhooks/$DISCORD_WEBHOOK_ID/$DISCORD_WEBHOOK_TOKEN

- name: Send Discord notification to Server 2
- name: Send Discord notification to private darkflow dev discord server
env:
URC_WEBHOOK_ID: ${{ secrets.DISCORD_DEV_SERVER_ID }}
URC_WEBHOOK_TOKEN: ${{ secrets.DISCORD_DEV_SERVER_TOKEN }}
Expand Down

0 comments on commit cf16791

Please sign in to comment.