mirror of
https://github.com/janikvonrotz/awesome-powershell.git
synced 2025-01-12 07:39:39 -05:00
Merge pull request #140 from hjorslev/check-md-links
Replace Quality Assurance with github-action-markdown-link-check
This commit is contained in:
commit
270ff8caba
28
.github/workflows/QualityAssurance.yml
vendored
28
.github/workflows/QualityAssurance.yml
vendored
@ -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
|
|
7
.github/workflows/markdown-link/config.json
vendored
Normal file
7
.github/workflows/markdown-link/config.json
vendored
Normal 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
18
.github/workflows/markdownLink.yml
vendored
Normal 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
23
.github/workflows/markdownLinkDaily.yml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user