Skip to content

Docs nightly checks #103

Docs nightly checks

Docs nightly checks #103

Workflow file for this run

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 }}"
}