From 54659a5cee5cf90b687eb50e2506e0fc05fb0068 Mon Sep 17 00:00:00 2001 From: Yuta Katayama <8683947+yutkat@users.noreply.github.com> Date: Thu, 19 Oct 2023 10:54:40 +0900 Subject: [PATCH] Update CI --- .github/scripts/archive_check.sh | 3 +-- .github/workflows/lint.yml | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/scripts/archive_check.sh b/.github/scripts/archive_check.sh index 70549a7..0cf1808 100755 --- a/.github/scripts/archive_check.sh +++ b/.github/scripts/archive_check.sh @@ -1,9 +1,8 @@ #!/bin/bash -filename="/tmp/repos.txt" +filename="$1" output="archived_check_list.txt" lines_per_chunk=100 -grep '](https://github.com' [a-z]*.md | sed -re 's/^.*\]\(https:\/\/github.com\/([^\)]*).*/\1/' > $filename if [ -e "$output" ]; then rm "$output" diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index bbec51a..9d10938 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -18,7 +18,8 @@ jobs: apt update apt-get install -y gh jq ca-certificates curl - run: > - ./.github/scripts/archive_check.sh + grep '](https://github.com' [a-z]*.md | sed -re 's/^.*\]\(https:\/\/github.com\/([^\)]*).*/\1/' > /tmp/repos.txt + ./.github/scripts/archive_check.sh /tmp/repos.txt env: GH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - run: >