Skip to content

Commit c41dd61

Browse files
author
Jeremy Page
committed
test4
1 parent 2c6b109 commit c41dd61

1 file changed

Lines changed: 13 additions & 27 deletions

File tree

.github/workflows/workflow1.yml

Lines changed: 13 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,19 @@
1-
name: build
1+
name: Teams Notification
2+
23
on:
3-
pull_request:
4+
push:
5+
branches:
6+
- main
47

58
jobs:
6-
testJob:
7-
runs-on: ubuntu-latest
8-
steps:
9-
- uses: actions/checkout@v3
10-
- run: |
11-
exit 0
12-
build:
13-
name: Checkout and notify
14-
needs: [TestJob]
15-
if: ${{always()}}
9+
notify:
1610
runs-on: ubuntu-latest
1711
steps:
18-
- name: Checkout Code
19-
uses: actions/checkout@v1
20-
- uses: freezer00/teams-webhook-action@v1.4.1
12+
- name: Send notification to Teams
13+
uses: chgeuer/github-action-microsoft-teams-notification@v1.0.0
2114
with:
22-
webhook_url: ${{secrets.MS_WEBHOOK_URL}}
23-
needs: ${{ toJson(needs) }}
24-
job: ${{ toJson(job) }}
25-
title: Custom title
26-
additional_button_title: |-
27-
Link to Google
28-
Link to Microsoft
29-
additional_button_url: |-
30-
https://google.com
31-
https://www.microsoft.com/de-de/microsoft-teams
32-
hide_facts: false
33-
dry_run: false
15+
webhook-uri: ${{ secrets.TEAMS_WEBHOOK_URL }}
16+
title: 'GitHub Action Run'
17+
summary: 'A new push has been made to the main branch.'
18+
text: 'Repository: ${{ github.repository }} | Commit: ${{ github.sha }}'
19+
color: '0078D4' # This is Microsoft's blue color

0 commit comments

Comments
 (0)