|
|
|
@ -13,17 +13,17 @@ jobs:
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
- run: |
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
|
- run: >
|
|
|
|
|
grep '](https://github.com' README.md |
|
|
|
|
|
sed -re 's/^.*\]\(https:\/\/github.com\/([^\)]*).*/\1/' |
|
|
|
|
|
xargs -I {} gh api repos/{} --jq '.name + ": " + (.archived|tostring)' > archived_check_list.txt
|
|
|
|
|
env:
|
|
|
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
GH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
|
|
|
|
|
- run: >
|
|
|
|
|
grep ": true" archived_check_list.txt
|
|
|
|
|
grep ": true" archived_check_list.txt || true
|
|
|
|
|
- run: >
|
|
|
|
|
test $(grep ': true' archived_check_list.txt | wc -l) -le 0
|
|
|
|
|