From f46950e392ea8ad6fb54230b85f6f5c4767d6180 Mon Sep 17 00:00:00 2001 From: Nikita Wootten Date: Tue, 26 Sep 2023 10:31:25 -0400 Subject: [PATCH] Add comment step --- .github/workflows/pages.yaml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pages.yaml b/.github/workflows/pages.yaml index 59aadbbfc..8be26d89c 100644 --- a/.github/workflows/pages.yaml +++ b/.github/workflows/pages.yaml @@ -92,11 +92,18 @@ jobs: - name: Link Check id: linkcheck run: make linkcheck LYCHEE_EXTRA_FLAGS='--github-token ${{ secrets.GITHUB_TOKEN }}' - # TODO - # - name: Comment Broken Links - # uses: marocchino/sticky-pull-request-comment@v2 - # with: - # path: lychee_report.md + - name: Upload linkcheck report + uses: actions/upload-artifact@v3 + with: + name: linkcheck-report + path: lychee_report.md + retention-days: 5 + - name: Comment broken links + uses: marocchino/sticky-pull-request-comment@v2 + with: + path: lychee_report.md + skip_unchanged: true + if: github.event_name == 'pull_request' # # Deployment #