Skip to content

Commit

Permalink
Upgrade AlDanial/cloc
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Sep 8, 2023
1 parent 8cb2d5a commit f5c1866
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/reusable-integrity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,16 @@ 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}"
{
echo '```'
perl "${{ runner.temp }}/cloc/cloc" --hide-rate --vcs=git \
--exclude-list-file=<(echo "package-lock.json") \
--exclude-list-file=<(echo -e 'LICENSE\npackage-lock.json') \
--ignored="${{ runner.temp }}/cloc/.clocignored"
cat "${{ runner.temp }}/cloc/.clocignored"
echo '```'
Expand Down

0 comments on commit f5c1866

Please sign in to comment.