Skip to content

Add docs content engagement tracking (#21426) #68

Add docs content engagement tracking (#21426)

Add docs content engagement tracking (#21426) #68

name: Docs broken link check
on:
workflow_dispatch:
pull_request:
paths:
- .github/workflows/docs-broken-links.yaml
- "docs/**"
push:
branches:
- main
paths:
- .github/workflows/docs-broken-links.yaml
- "docs/**"
permissions:
contents: read
# Limit concurrency by workflow/branch combination.
#
# For pull request builds, pushing additional changes to the
# branch will cancel prior in-progress and pending builds.
#
# For builds triggered on a branch push, additional changes
# will wait for prior builds to complete before starting.
#
# https://docs.github.com/en/actions/using-jobs/using-concurrency
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
check-broken-links:
name: Check docs broken links
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v6
with:
persist-credentials: false
- name: Setup NodeJS
uses: actions/setup-node@v6
with:
node-version-file: ".nvmrc"
- name: Set up just
uses: extractions/setup-just@v3
- name: Check for broken links
working-directory: docs
run: just links