forked from deephaven/deephaven-core
-
Notifications
You must be signed in to change notification settings - Fork 1
71 lines (62 loc) · 2.18 KB
/
nightly-docs.yml
File metadata and controls
71 lines (62 loc) · 2.18 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Docs nightly checks
# Controls when the action will run.
on:
schedule:
#2AM EST == 6AM UTC
- cron: '0 6 * * *'
jobs:
snapshots:
runs-on: ubuntu-24.04
if: github.ref == 'refs/heads/main' && github.repository_owner == 'deephaven' # Don't run on forks that haven't disabled actions
steps:
- name: Checkout
uses: actions/checkout@v5
with:
sparse-checkout: /docs/
sparse-checkout-cone-mode: false
# Run all snapshots against the edge container
- name: Run all snapshots
run: ./docs/updateSnapshots -t edge -a
- name: Upload error logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: snapshot-error-logs
path: docs/snapshotter/errors/
validation:
runs-on: ubuntu-24.04
if: github.ref == 'refs/heads/main' && github.repository_owner == 'deephaven' # Don't run on forks that haven't disabled actions
steps:
- name: Checkout
uses: actions/checkout@v5
with:
sparse-checkout: /docs/
sparse-checkout-cone-mode: false
# We can validate without lfs as the assets will exist as just a file pointer which is enough for validation
- name: Check formatting
run: ./docs/format -c
- name: Validate docs
if: always()
run: ./docs/validate -e # Validate with external links
- name: Upload error logs
if: failure()
uses: actions/upload-artifact@v4
with:
name: validator-error-logs
path: docs/validator-results/
slack-notify:
runs-on: ubuntu-24.04
needs: [snapshots, validation]
if: failure() && github.ref == 'refs/heads/main' && github.repository_owner == 'deephaven'
steps:
- name: Slack Notification
uses: slackapi/slack-github-action@v1.23.0
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_DEVREL}}
with:
payload: |
{
"repository": "${{ github.repository }}",
"message": "${{ github.workflow }}/${{ github.job }} nightly check failure",
"link": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}