Skip to content

Commit 017f503

Browse files
committed
Add step to notify on Teams if weekly build fails
1 parent b84dd86 commit 017f503

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/build.yml

+12-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
on:
22
workflow_dispatch: {}
3+
schedule:
4+
- cron: '0 0 * * 0' # Runs at 00:00 on Sunday
35

46

57
jobs:
@@ -18,7 +20,15 @@ jobs:
1820
- run: |
1921
./cross_compile_ffmpeg.sh --build-ffmpeg-shared=n --build-ffmpeg-static=y --disable-nonfree=y --build-intel-qsv=n --compiler-flavors=win64 --enable-gpl=n
2022
21-
- uses: actions/upload-artifact@v3
23+
- uses: actions/upload-artifact@v4
2224
with:
2325
name: ffmpeg
24-
path: sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/bin/ffmpeg.exe
26+
path: sandbox/cross_compilers/mingw-w64-x86_64/x86_64-w64-mingw32/bin/ffmpeg.exe
27+
28+
- name: Microsoft Teams Notification
29+
uses: skitionek/notify-microsoft-teams@master
30+
if: failure()
31+
with:
32+
webhook_url: ${{ secrets.MSTEAMS_WEBHOOK }}
33+
title: "`AnyBody FFMPEG weekly build failed`"
34+
msteams_emails: ${{ secrets.MSTEAMS_EMAILS }}

0 commit comments

Comments
 (0)