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:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- uses: pnpm/action-setup@v2.2.4
|
|
|
|
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
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-02-14 04:00:15 -08:00
|
|
|
run: pnpm install
|
2022-12-22 08:01:29 -08:00
|
|
|
|
|
|
|
- name: Build nodes-base
|
2023-05-17 07:40:53 -07:00
|
|
|
run: pnpm --filter @n8n/client-oauth2 --filter n8n-workflow --filter n8n-core --filter n8n-nodes-base build
|
2022-12-22 08:01:29 -08:00
|
|
|
|
|
|
|
- name: Test URLS
|
|
|
|
run: node scripts/validate-docs-links.js
|
|
|
|
|
|
|
|
- name: Notify Slack on failure
|
|
|
|
uses: act10ns/slack@v2.0.0
|
|
|
|
if: failure()
|
|
|
|
with:
|
|
|
|
status: ${{ job.status }}
|
|
|
|
channel: '#updates-build-alerts'
|
|
|
|
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
|
|
message: Documentation URLs check failed (${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
|