2022-12-22 08:01:29 -08:00
|
|
|
name: Check Documentation URLs
|
|
|
|
|
|
|
|
on:
|
2023-02-21 07:02:31 -08:00
|
|
|
release:
|
|
|
|
types: [published]
|
2023-02-14 04:00:15 -08:00
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *'
|
2022-12-22 08:01:29 -08:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
2023-02-14 04:00:15 -08:00
|
|
|
check-docs-urls:
|
2022-12-22 08:01:29 -08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
timeout-minutes: 5
|
|
|
|
|
|
|
|
steps:
|
2024-01-26 02:26:30 -08:00
|
|
|
- uses: actions/checkout@v4.1.1
|
2022-12-22 08:01:29 -08:00
|
|
|
|
2024-02-02 00:47:58 -08:00
|
|
|
- run: corepack enable
|
2024-05-24 03:32:50 -07:00
|
|
|
- uses: actions/setup-node@v4.0.2
|
2022-12-22 08:01:29 -08:00
|
|
|
with:
|
2024-05-24 03:32:50 -07:00
|
|
|
node-version: 20.x
|
2022-12-22 08:01:29 -08:00
|
|
|
cache: 'pnpm'
|
|
|
|
|
|
|
|
- name: Install dependencies
|
2023-08-22 02:21:16 -07:00
|
|
|
run: pnpm install --frozen-lockfile
|
2022-12-22 08:01:29 -08:00
|
|
|
|
2024-04-11 01:37:35 -07:00
|
|
|
- name: Build relevant packages
|
2024-09-13 04:02:00 -07:00
|
|
|
run: pnpm build:nodes
|
2024-01-09 10:17:07 -08:00
|
|
|
|
|
|
|
- run: npm install --prefix=.github/scripts --no-package-lock
|
2022-12-22 08:01:29 -08:00
|
|
|
|
2023-12-11 02:08:38 -08:00
|
|
|
- name: Test URLs
|
2024-01-09 10:17:07 -08:00
|
|
|
run: node .github/scripts/validate-docs-links.js
|
2022-12-22 08:01:29 -08:00
|
|
|
|
|
|
|
- name: Notify Slack on failure
|
|
|
|
uses: act10ns/slack@v2.0.0
|
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
status: ${{ job.status }}
|
2024-01-25 04:06:45 -08:00
|
|
|
channel: '#alerts-build'
|
2022-12-22 08:01:29 -08:00
|
|
|
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
|
2024-01-25 04:06:45 -08:00
|
|
|
message: |
|
|
|
|
<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}| Documentation URLs check failed >
|