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: >