1
0
mirror of synced 2025-12-30 12:02:01 -05:00

Add GHEC link check workflow (#22478)

* Add GHEC link checker workflow

* Update link check script for GHEC

* Remove stale comments
This commit is contained in:
Robert Sese
2021-10-29 15:50:22 -05:00
committed by GitHub
parent 3e73886cbd
commit 06f9fa101c
2 changed files with 43 additions and 2 deletions

36
.github/workflows/link-check-ghec.yml vendored Normal file
View File

@@ -0,0 +1,36 @@
name: 'Link Checker: Enterprise Cloud'
# **What it does**: This checks links for GHEC 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:
- name: Checkout
uses: actions/checkout@1e204e9a9253d643386038d443f96446fa156a97
- name: Setup node
uses: actions/setup-node@270253e841af726300e85d718a5f606959b2903c
with:
node-version: 16.8.x
cache: npm
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: 'Link check: Enterprise Cloud'
env:
DOCS_VERSION: 'enterprise-cloud'
run: npm run link-check