This commit is contained in:
Yuta Katayama 2023-05-01 02:47:39 +09:00
parent c86dac828a
commit 4adf4f5e42
No known key found for this signature in database
GPG Key ID: E50AA6AA7A7BD4CA
3 changed files with 2 additions and 2 deletions

View File

@ -22,6 +22,6 @@ jobs:
apt update
apt-get install -y gh ca-certificates
- run: >
grep '](https://github.com' README.md [a-z]*.md | sed -re 's/^.*\]\(https:\/\/github.com\/([^\)]*).*/\1/' | xargs -I {} dirname {} | sort | uniq -c | sort -n -r
grep '](https://github.com' [a-z]*.md | sed -re 's/^.*\]\(https:\/\/github.com\/([^\)]*).*/\1/' | xargs -I {} dirname {} | sort | uniq -c | sort -n -r
env:
GH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

View File

@ -18,7 +18,7 @@ jobs:
apt update
apt-get install -y gh jq ca-certificates curl
- run: >
grep '](https://github.com' README.md [a-z]*.md |
grep '](https://github.com' [a-z]*.md |
sed -re 's/^.*\]\(https:\/\/github.com\/([^\)]*).*/\1/' |
xargs -I {} bash -c "echo -n \"{}: \"; gh api repos/{} 2>/dev/null | jq -r '(.archived|tostring)'" | tee archived_check_list.txt
env: