Spaces:
Sleeping
Sleeping
Commit
Β·
f94dc0f
1
Parent(s):
a44f654
added notification to microsoft teams
Browse files
.github/workflows/discord-notification.yml
CHANGED
@@ -18,3 +18,13 @@ jobs:
|
|
18 |
curl -X POST -H "Content-Type: application/json" \
|
19 |
-d "{\"content\": \"@everyone π₯ **A new commit was pushed to the main branch by $GITHUB_ACTOR** π₯\\n**Commit Message:** ${COMMIT_MESSAGE} \\n**Commit URL:** ${COMMIT_URL}\"}" \
|
20 |
$DISCORD_WEBHOOK_URL
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
curl -X POST -H "Content-Type: application/json" \
|
19 |
-d "{\"content\": \"@everyone π₯ **A new commit was pushed to the main branch by $GITHUB_ACTOR** π₯\\n**Commit Message:** ${COMMIT_MESSAGE} \\n**Commit URL:** ${COMMIT_URL}\"}" \
|
20 |
$DISCORD_WEBHOOK_URL
|
21 |
+
|
22 |
+
- name: SendTeamsNotification
|
23 |
+
env:
|
24 |
+
TEAMS_WEBHOOK_URL: ${{ secrets.TEAMS_WEBHOOK }}
|
25 |
+
run: |
|
26 |
+
COMMIT_URL="${{ github.event.head_commit.url }}"
|
27 |
+
COMMIT_MESSAGE="${{ github.event.head_commit.message }}"
|
28 |
+
curl -X POST -H "Content-Type: application/json" \
|
29 |
+
-d "{\"content\": \"@everyone π₯ **A new commit was pushed to the main branch by $GITHUB_ACTOR** π₯\\n**Commit Message:** ${COMMIT_MESSAGE} \\n**Commit URL:** ${COMMIT_URL}\"}" \
|
30 |
+
$TEAMS_WEBHOOK_URL
|