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:
|
2023-08-22 02:21:16 -07:00
|
|
|
- uses: actions/checkout@v3.5.3
|
2022-12-22 08:01:29 -08:00
|
|
|
|
2023-08-22 02:21:16 -07:00
|
|
|
- uses: pnpm/action-setup@v2.4.0
|
2022-12-22 08:01:29 -08:00
|
|
|
|
2023-08-22 02:21:16 -07:00
|
|
|
- uses: actions/setup-node@v3.7.0
|
2022-12-22 08:01:29 -08:00
|
|
|
with:
|
2023-06-02 06:23:28 -07:00
|
|
|
node-version: 18.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
|
|
|
|
|
|
|
- name: Build nodes-base
|
2024-01-09 10:17:07 -08:00
|
|
|
run: pnpm --filter @n8n/client-oauth2 --filter n8n-workflow --filter n8n-core --filter n8n-nodes-base --filter @n8n/n8n-nodes-langchain build
|
|
|
|
|
|
|
|
- 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 }}
|
2023-12-11 02:08:38 -08:00
|
|
|
channel: '#mission-docs'
|
2022-12-22 08:01:29 -08:00
|
|
|
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
|
|
message: Documentation URLs check failed (${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
|