Skip to content

fix(deps): update dependency rehype-mermaidjs to v2 (docs-v2) #245

fix(deps): update dependency rehype-mermaidjs to v2 (docs-v2)

fix(deps): update dependency rehype-mermaidjs to v2 (docs-v2) #245

Workflow file for this run

name: Check broken links
on:
push:
branches: ["main"]
pull_request:
workflow_dispatch:
jobs:
check-links:
if: ${{ github.event_name == 'pull_request' }}
runs-on: ubuntu-22.04
steps:
- run: sleep 30
- name: Get Vercel preview URL
uses: zentered/[email protected]
id: vercel_preview_url
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
with:
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID }}
vercel_team_id: ${{ secrets.VERCEL_TEAM_ID }}
- uses: actions/checkout@v3
- name: Check for broken links
if: steps.vercel_preview_url.outcome == 'success'
uses: lycheeverse/[email protected]
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
args: --max-redirects 10 --exclude-mail --base https://${{ steps.vercel_preview_url.outputs.preview_url }} './src/content/docs/en/**/*.mdx'
fail: true
check-live-links:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Lychee Broken Link Checker
if: github.ref == 'refs/heads/main'
uses: lycheeverse/[email protected]
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
args: --max-redirects 10 --exclude-mail --base https://dev.adjust.com './src/content/docs/en/**/*.mdx'
fail: true
- name: Create issue to fix broken links
# Don't run this step for pull requests. We don't want to generate an issue every time!
if: ${{ failure() && env.lychee_exit_code != 0 && github.event_name != 'pull_request' }}
uses: peter-evans/create-issue-from-file@v4
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
labels: report, automated issue