Merge pull request #140 from hjorslev/check-md-links

Replace Quality Assurance with github-action-markdown-link-check
This commit is contained in:
Janik Vonrotz 2022-09-22 09:14:41 +02:00 committed by GitHub
commit 270ff8caba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 48 additions and 28 deletions

View File

@ -1,28 +0,0 @@
# This is a basic workflow to help you get started with Actions
name: Quality Assurance
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
pull_request:
branches: [ master ]
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '0 0 * * *'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
analyze-readme:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Analyze Links
shell: pwsh
run: |
./DeadLinksAnalyzer.ps1

View File

@ -0,0 +1,7 @@
{
"timeout": "40s",
"retryOn429": true,
"retryCount": 5,
"fallbackRetryDelay": "30s",
"aliveStatusCodes": [504, 503, 403, 200]
}

18
.github/workflows/markdownLink.yml vendored Normal file
View File

@ -0,0 +1,18 @@
on:
pull_request:
branches:
- master
- 'release/**'
name: Check for broken links
jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
check-modified-files-only: 'yes'
config-file: .github/workflows/markdown-link/config.json

23
.github/workflows/markdownLinkDaily.yml vendored Normal file
View File

@ -0,0 +1,23 @@
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
name: Awesome PowerShell Daily Markdown Link Verification
on:
workflow_dispatch:
schedule:
# At 13:00 UTC every day.
- cron: '0 13 * * *'
jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Check Links
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
config-file: .github/workflows/markdown-link/config.json