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-01-26 02:26:30 -08:00
|
|
|
- uses: actions/setup-node@v4.0.1
|
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
|
|
|
|
2024-04-11 01:37:35 -07:00
|
|
|
- name: Build relevant packages
|
|
|
|
run: pnpm --filter @n8n/client-oauth2 --filter @n8n/imap --filter n8n-workflow --filter n8n-core --filter n8n-nodes-base --filter @n8n/n8n-nodes-langchain build
|
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 >
|