1
0
mirror of synced 2025-12-30 03:01:36 -05:00
Files
docs/.github/workflows/link-check-dotcom.yml
James M. Greene 265f074565 Update actions-linter to latest for concurrency key support (#20441)
* Update version of actions-linter to support 'concurrency' key
* Update .github/workflows/workflow-lint.yml
* Revert casing of 'fromJson' to 'fromJSON'
2021-07-21 15:40:42 +00:00

39 lines
1010 B
YAML

name: 'Link Checker: Dotcom'
# **What it does**: This checks links for dotcom version of docs.
# **Why we have it**: We want to know if links break.
# **Who does it impact**: Docs content.
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ${{ fromJSON('["ubuntu-latest", "self-hosted"]')[github.repository == 'github/docs-internal'] }}
steps:
# Each of these ifs needs to be repeated at each step to make sure the required check still runs
# Even if if doesn't do anything
- name: Checkout
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
- name: Setup node
uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f
with:
node-version: 16.x
cache: npm
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: 'Link check: Dotcom'
env:
DOCS_VERSION: 'dotcom'
run: npm run link-check