File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : build
1+ name : Teams Notification
2+
23on :
3- pull_request :
4+ push :
5+ branches :
6+ - main
47
58jobs :
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
You can’t perform that action at this time.
0 commit comments