Skip to content

Commit

Permalink
updated discord updates
Browse files Browse the repository at this point in the history
  • Loading branch information
soulsyrup committed Nov 17, 2023
1 parent f5c60c5 commit d1003b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/discord_notification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ jobs:
DISCORD_WEBHOOK_TOKEN: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
run: |
COMMIT_MESSAGE=$(git log -1 --pretty=format:"%s")
COMMIT_DESCRIPTION=$(git log -1 --pretty=format:"%b")
COMMIT_AUTHOR=$(git log -1 --pretty=format:"%an <%ae>")
curl -X POST -H "Content-Type: application/json" -d "{ \"content\": \"New commit by $COMMIT_AUTHOR! Check out the latest changes: https://github.com/Unlimited-Research-Cooperative/Human-Brain-Rat/commits/${{ github.sha }}\", \"embeds\": [ { \"title\": \"$COMMIT_MESSAGE\", \"description\": \"$COMMIT_DESCRIPTION\" } ] }" https://discord.com/api/webhooks/$DISCORD_WEBHOOK_ID/$DISCORD_WEBHOOK_TOKEN
COMMIT_URL="https://github.com/Unlimited-Research-Cooperative/Human-Brain-Rat/commits/${{ github.sha }}"
curl -X POST -H "Content-Type: application/json" -d "{\"content\": \"New commit by $COMMIT_AUTHOR! Check out the latest changes: $COMMIT_URL\", \"embeds\": [{ \"title\": \"$COMMIT_MESSAGE\" }]}" https://discord.com/api/webhooks/$DISCORD_WEBHOOK_ID/$DISCORD_WEBHOOK_TOKEN
- name: Send Discord notification to Server 2
env:
URC_WEBHOOK_ID: ${{ secrets.URC_WEBHOOK_ID }}
URC_WEBHOOK_TOKEN: ${{ secrets.URC_WEBHOOK_TOKEN }}
run: |
COMMIT_MESSAGE=$(git log -1 --pretty=format:"%s")
COMMIT_DESCRIPTION=$(git log -1 --pretty=format:"%b")
COMMIT_AUTHOR=$(git log -1 --pretty=format:"%an <%ae>")
curl -X POST -H "Content-Type: application/json" -d "{ \"content\": \"New commit by $COMMIT_AUTHOR! Check out the latest changes: https://github.com/Unlimited-Research-Cooperative/Human-Brain-Rat/commits/${{ github.sha }}\", \"embeds\": [ { \"title\": \"$COMMIT_MESSAGE\", \"description\": \"$COMMIT_DESCRIPTION\" } ] }" https://discord.com/api/webhooks/$URC_WEBHOOK_ID/$URC_WEBHOOK_TOKEN
COMMIT_URL="https://github.com/Unlimited-Research-Cooperative/Human-Brain-Rat/commits/${{ github.sha }}"
curl -X POST -H "Content-Type: application/json" -d "{\"content\": \"New commit by $COMMIT_AUTHOR! Check out the latest changes: $COMMIT_URL\", \"embeds\": [{ \"title\": \"$COMMIT_MESSAGE\" }]}" https://discord.com/api/webhooks/$URC_WEBHOOK_ID/$URC_WEBHOOK_TOKEN

0 comments on commit d1003b4

Please sign in to comment.