From 0f1a670a73c03268cf68cbf3029d2a5538b0c326 Mon Sep 17 00:00:00 2001 From: Jake Henning <59198928+jkhenning@users.noreply.github.com> Date: Tue, 28 Dec 2021 16:35:44 +0200 Subject: [PATCH] Update links.yml --- .github/workflows/links.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index 93b5cc30..214195c7 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -24,20 +24,21 @@ jobs: - name: Find all markdown files id: find_files - run: | - echo "::set-output name=files::$(find . -name '*.md' -type f | sed 's|^./||' | tr '\n' ' ')" + run: echo "MD_FILES=$(find . -name '*.md' -type f | sed 's|^./||' | tr '\n' ' ')" >> $GITHUB_ENV - name: Link Checker id: lychee uses: lycheeverse/lychee-action@v1.2.0 with: - args: --verbose --no-progress ${{steps.find_files.outputs.files}} + format: json + output: /tmp/links.json + args: --verbose --no-progress $MD_FILES env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - name: Read Markdown if: ${{ steps.lychee.outputs.exit_code != 0 }} - run: echo "REPORT=$(jq -Rs '.' ./lychee/out.md)" >> $GITHUB_ENV + run: echo "REPORT=$(echo jq -Rs '```.```' /tmp/links.json)" >> $GITHUB_ENV - name: Slack Notification if: ${{ steps.lychee.outputs.exit_code != 0 }}