From 207f67dcba7faea9f146e31652e64507106f5fcf Mon Sep 17 00:00:00 2001 From: Yuta Katayama <8683947+yutkat@users.noreply.github.com> Date: Mon, 29 Aug 2022 03:22:09 +0900 Subject: [PATCH] Fix the removed repo --- .github/workflows/lint.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5233010..f9455b2 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,17 +16,21 @@ jobs: curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null apt update - apt-get install -y gh ca-certificates curl + apt-get install -y gh jq ca-certificates curl - run: > grep '](https://github.com' README.md [a-z]*.md | sed -re 's/^.*\]\(https:\/\/github.com\/([^\)]*).*/\1/' | - xargs -I {} gh api repos/{} --jq '.name + ": " + (.archived|tostring)' | tee archived_check_list.txt + xargs -I {} bash -c "echo -n \"{}: \"; gh api repos/{} 2>/dev/null | jq -r '(.archived|tostring)'" | tee archived_check_list.txt env: GH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - run: > grep ": true" archived_check_list.txt || true - run: > test $(grep ': true' archived_check_list.txt | wc -l) -le 0 + - run: > + grep ": null" archived_check_list.txt || true + - run: > + test $(grep ': null' archived_check_list.txt | wc -l) -le 0 # curl 429 too many requests # - run: > # grep '](https://github.com' README.md [a-z]*.md |