diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index 70749934..94ca1dd4 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -14,11 +14,16 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Remove symlink + run: rm docs/source/README.md - name: lychee Link Checker id: lychee uses: lycheeverse/lychee-action@v1.5.0 with: - args: --accept=200,403,429 "**/*.html" "**/*.md" "**/*.txt" "**/*.json" --exclude "file:///github/workspace/*" --exclude-mail + args: --accept=200,403,429 "**/*.html" "**/*.md" "**/*.txt" "**/*.json" --exclude "file:///github/workspace/*" --exclude "file:///home/runner/work/opensearch-py/opensearch-py/docs/source/README.md" --exclude-mail fail: true env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + - name: Restore symlink + if: always() + run: ln -s ../../README.md docs/source/README.md