From 0b68372f88a5bc4f1be75bce394b5a51311fc29a Mon Sep 17 00:00:00 2001 From: mDuo13 Date: Mon, 24 May 2021 07:37:19 -0700 Subject: [PATCH] GHA: try adding PR preview to PR link check job --- .github/workflows/link-checker-pr.yml | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/workflows/link-checker-pr.yml b/.github/workflows/link-checker-pr.yml index 65b1e311bc..16883fe2b9 100644 --- a/.github/workflows/link-checker-pr.yml +++ b/.github/workflows/link-checker-pr.yml @@ -44,12 +44,19 @@ jobs: echo 'EOF' >> $GITHUB_ENV cat linkreport.txt - # # Disabled because the ripple GitHub org doesn't allow the GITHUB_TOKEN to do this - # - name: Comment Broken Links - # uses: unsplash/comment-on-pr@master - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # if: always() - # with: - # msg: ${{ env.LINKREPORT }} - # check_for_duplicate_msg: false + - name: Comment Broken Links + uses: unsplash/comment-on-pr@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + if: always() + with: + msg: ${{ env.LINKREPORT }} + check_for_duplicate_msg: false + + - name: Deploy preview to gh-pages + uses: sauloxd/review-apps@v1.3.3 + with: + build-cmd: "echo 'Using existing build'" + branch: "gh-pages" + dist: "out" + slug: "pr-preview"