Skip to content

Commit 897a890

Browse files
Adding discord webhook to GH Action
1 parent e221eeb commit 897a890

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ jobs:
2828
- name: Run tests
2929
run: mvn test
3030

31-
- name: Count commits
31+
- name: Send a notifiction on the Discord server
3232
run: |
33-
git fetch --prune --unshallow || true
34-
touch .github/stats/commits.md
35-
git rev-list --count HEAD > .github/stats/commits.md
33+
curl -H "Content-Type: application/json" \
34+
-d '{"username": "GitHub Bot", "content": "### New commit on main branch\nRepository: '${{ github.repository }}'\nCommit: '${{ github.sha }}'\nActor: '${{github.actor}}'"}' \
35+
${{ https://discord.com/api/webhooks/1431847084423643259/MShZSYYVr0NEWEMxtebAzrstOMoxQXCceRciBmEExgRj3cg95RBi61V_LFYdJkQgcQkD }}
36+

0 commit comments

Comments
 (0)