-
Notifications
You must be signed in to change notification settings - Fork 68
44 lines (42 loc) · 1.4 KB
/
daily.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: daily
on:
workflow_dispatch:
schedule:
# Runs daily at a weird time (03:17 UTC) to avoid delays during periods of
# high loads of GitHub Actions workflow runs.
- cron: '17 3 * * *'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
# Updating the wiki fails if between the checkout of the wiki and the push of the update the other job pushes its update
max-parallel: 1
matrix:
os: [windows-2019, windows-2022]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build and test all packages
id: test
run: scripts/test/test_install.ps1 -all -max_tries 3
- name: Upload logs to artifacts
uses: ./.github/actions/upload-logs
if: always()
- name: Checkout wiki code
if: always()
uses: actions/checkout@v3
with:
repository: ${{ github.repository }}.wiki
path: wiki
- name: Add results to wiki
if: always()
run: python scripts/utils/generate_daily_results.py ${{ github.repository }} ${{ github.sha }} ${{ github.run_number }} ${{ github.run_id }} ${{ matrix.os }}
- name: Commit changes
if: always()
run: |
cd wiki
git config user.email '[email protected]'
git config user.name 'vm-packages'
git commit -am 'Add daily results'
git push