From 57be76525e7753682f41d15b1bf43cd50eaafe73 Mon Sep 17 00:00:00 2001 From: nomicon-kr Date: Sat, 22 Jun 2024 13:22:02 +0900 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index de08732..70a3a62 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,14 +24,18 @@ jobs: id: cache uses: actions/cache@v4.0.2 with: - path: ${GITHUB_WORKSPACE}/linkcheck.sh + path: ~/linkchecker key: linkcheck-${{ runner.os }} - - name: Install linkcheck + - name: Install linkcheck and Check links if: steps.cache.outputs.cache-hit != 'true' run: | curl -sSLo linkcheck.sh \ https://raw.githubusercontent.com/rust-lang/rust/master/src/tools/linkchecker/linkcheck.sh + sh linkcheck.sh --all nomicon - name: Check links - run: sh linkcheck.sh --all nomicon + if: steps.cache.outputs.cache-hit == 'true' + run: | + cd linkchecker + cargo run --release linkcheck