Remove markdown link checker (#11722)

The Markdown link checker currently deployed has served its purpose for
the time being. It is being removed to avoid failed checks on PRs, while
we evaluate alternative solutions used by other HashiCorp repositories.
pull/11734/head
Wilken Rivera 4 years ago committed by GitHub
parent 1c0d3ad93d
commit ca825d7a6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,39 +0,0 @@
on:
pull_request:
paths:
- 'website/**'
name: Check markdown links on modified website files
jobs:
vercel-deployment-poll:
runs-on: ubuntu-latest
timeout-minutes: 5 #cancel job if no deployment is found within x minutes
outputs:
url: ${{ steps.waitForVercelPreviewDeployment.outputs.url }}
steps:
- name: Wait for Vercel preview deployment to be ready
uses: nywilken/wait-for-vercel-preview@master
id: waitForVercelPreviewDeployment
with:
token: ${{ secrets.GITHUB_TOKEN }}
max_timeout: 600 # in seconds, set really high to leverage job timeout-minutes values
allow_inactive: true # needed to ensure we get a URL for a previously released deployment
markdown-link-check:
needs: vercel-deployment-poll
if: ${{ needs.vercel-deployment-poll.outputs.url != '' }}
runs-on: ubuntu-latest
steps:
- name: Get Deployment URL
run:
echo "DEPLOYMENT_URL=${{ needs.vercel-deployment-poll.outputs.url }}" >> $GITHUB_ENV
- name: Checkout source branch
uses: actions/checkout@master
- name: Check links
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
file-extension: 'mdx'
check-modified-files-only: 'yes'
folder-path: 'website/content'
base-branch: 'main'
config-file: '.mlc_config.json'

@ -1,19 +0,0 @@
on:
schedule:
- cron: "45 0 * * *"
name: Check Markdown links on main branch
jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- name: Set deployment URL env
run:
echo "DEPLOYMENT_URL=https://packer-git-main.hashicorp.vercel.app" >> $GITHUB_ENV
- uses: actions/checkout@master
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
file-extension: 'mdx'
folder-path: 'website/content'
base-branch: 'main'
config-file: '.mlc_config.json'

@ -1,24 +0,0 @@
{
"ignorePatterns": [
{
"pattern": "^https://example.com"
},
{
"pattern": "^https://ec2.custom.endpoint.com"
},
{
"pattern": "^https://www.linode.com"
},
{
"pattern": "^https://oidref.com/"
}
],
"replacementPatterns": [
{
"pattern": "^/",
"replacement": "{{env.DEPLOYMENT_URL}}/"
}
],
"timeout": "20s",
"retryOn429": true
}
Loading…
Cancel
Save