CI: fixed on schedule workflows

- run on schedule only in CESNET/UltraGrid repo
- otherwise run only if pushing to respective branches
- run Coverity scan earlier (4:00 UTC)
This commit is contained in:
Martin Pulec
2022-04-20 08:34:55 +02:00
parent 176b365c65
commit 18f0496084
2 changed files with 3 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ on:
jobs:
Build:
if: github.repository == 'CESNET/UltraGrid' || github.event.schedule != null
if: github.repository == 'CESNET/UltraGrid' || github.event.schedule == null
runs-on: ubuntu-latest
strategy:
matrix:

View File

@@ -5,10 +5,11 @@ on:
branches:
- coverity_scan
schedule:
- cron: '0 6 20 * *' # 20th at 6:00 UTC
- cron: '0 4 20 * *' # 20th at 4:00 UTC
jobs:
Coverity:
if: github.repository == 'CESNET/UltraGrid' || github.event.schedule == null
runs-on: ubuntu-latest
env:
SDK_URL: ${{ secrets.SDK_URL }}