From 6941f0a4503a8dcfc29c2733f2191d03028a7644 Mon Sep 17 00:00:00 2001 From: Frederik Hjorslev Date: Wed, 18 May 2022 20:40:48 +0200 Subject: [PATCH 1/5] Create markdownLink.yml --- .github/workflows/markdownLink.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/markdownLink.yml diff --git a/.github/workflows/markdownLink.yml b/.github/workflows/markdownLink.yml new file mode 100644 index 0000000..88c46b6 --- /dev/null +++ b/.github/workflows/markdownLink.yml @@ -0,0 +1,18 @@ +on: + pull_request: + branches: + - master + - 'release/**' + +name: Check links for modified files +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 From a055b5b29e6a9e8b0a730a8cac600989fa459e1e Mon Sep 17 00:00:00 2001 From: Frederik Hjorslev Date: Wed, 18 May 2022 20:41:44 +0200 Subject: [PATCH 2/5] Create markdownLinkDaily.yml --- .github/workflows/markdownLinkDaily.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/markdownLinkDaily.yml diff --git a/.github/workflows/markdownLinkDaily.yml b/.github/workflows/markdownLinkDaily.yml new file mode 100644 index 0000000..49835e6 --- /dev/null +++ b/.github/workflows/markdownLinkDaily.yml @@ -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 From a1fa68917b9eeca1d78bf0374a538951cf4a5c57 Mon Sep 17 00:00:00 2001 From: Frederik Hjorslev Date: Wed, 18 May 2022 20:43:17 +0200 Subject: [PATCH 3/5] Create config.json --- .github/workflows/markdown-link/config.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .github/workflows/markdown-link/config.json diff --git a/.github/workflows/markdown-link/config.json b/.github/workflows/markdown-link/config.json new file mode 100644 index 0000000..87d6592 --- /dev/null +++ b/.github/workflows/markdown-link/config.json @@ -0,0 +1,7 @@ +{ + "timeout": "40s", + "retryOn429": true, + "retryCount": 5, + "fallbackRetryDelay": "30s", + "aliveStatusCodes": [504, 503, 403, 200] +} From d746efe71dc58927df9c61a83659760a575ed36b Mon Sep 17 00:00:00 2001 From: Frederik Hjorslev Date: Wed, 18 May 2022 20:43:35 +0200 Subject: [PATCH 4/5] Delete QualityAssurance.yml --- .github/workflows/QualityAssurance.yml | 28 -------------------------- 1 file changed, 28 deletions(-) delete mode 100644 .github/workflows/QualityAssurance.yml diff --git a/.github/workflows/QualityAssurance.yml b/.github/workflows/QualityAssurance.yml deleted file mode 100644 index f22bd50..0000000 --- a/.github/workflows/QualityAssurance.yml +++ /dev/null @@ -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 \ No newline at end of file From 9d1d67bf3cb15b56be96c59272c640735978d90c Mon Sep 17 00:00:00 2001 From: Frederik Hjorslev Date: Wed, 18 May 2022 20:49:20 +0200 Subject: [PATCH 5/5] Update markdownLink.yml --- .github/workflows/markdownLink.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/markdownLink.yml b/.github/workflows/markdownLink.yml index 88c46b6..740eb9c 100644 --- a/.github/workflows/markdownLink.yml +++ b/.github/workflows/markdownLink.yml @@ -4,7 +4,7 @@ on: - master - 'release/**' -name: Check links for modified files +name: Check for broken links jobs: markdown-link-check: runs-on: ubuntu-latest