From d017b6fa7955c29fe2a385b0caaec3280039f2e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Fri, 8 Sep 2023 23:30:36 +0000 Subject: [PATCH] Upgrade and fix AlDanial/cloc --- .github/workflows/reusable-integrity.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/reusable-integrity.yml b/.github/workflows/reusable-integrity.yml index 40dc910..3719299 100644 --- a/.github/workflows/reusable-integrity.yml +++ b/.github/workflows/reusable-integrity.yml @@ -119,16 +119,17 @@ jobs: run: | mkdir -p "${{ runner.temp }}/cloc" RELEASE_ASSET_URL="$( - # v1.96 - gh api /repos/AlDanial/cloc/releases/86472842 \ + # v1.98 + gh api /repos/AlDanial/cloc/releases/117882376 \ --jq '."assets"[] | select(."name" | test("^cloc-.+\\.pl$")) | ."browser_download_url"' )" wget --secure-protocol=TLSv1_3 --max-redirect=1 --retry-on-host-error --retry-connrefused --tries=3 \ --no-verbose --output-document="${{ runner.temp }}/cloc/cloc" "${RELEASE_ASSET_URL}" { + printf '%s\n' LICENSE package-lock.json >"${{ runner.temp }}/cloc/exclude-list" echo '```' perl "${{ runner.temp }}/cloc/cloc" --hide-rate --vcs=git \ - --exclude-list-file=<(echo "package-lock.json") \ + --exclude-list-file="${{ runner.temp }}/cloc/exclude-list" \ --ignored="${{ runner.temp }}/cloc/.clocignored" cat "${{ runner.temp }}/cloc/.clocignored" echo '```'