diff --git a/.github/workflows/linkchecker.yml b/.github/workflows/linkchecker.yml deleted file mode 100644 index 2563fe57b..000000000 --- a/.github/workflows/linkchecker.yml +++ /dev/null @@ -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' diff --git a/.github/workflows/scheduled-link-checker.yml b/.github/workflows/scheduled-link-checker.yml deleted file mode 100644 index 5bd5b517d..000000000 --- a/.github/workflows/scheduled-link-checker.yml +++ /dev/null @@ -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' diff --git a/.mlc_config.json b/.mlc_config.json deleted file mode 100644 index 53dabc0fb..000000000 --- a/.mlc_config.json +++ /dev/null @@ -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 -}