my-neovim-pluginlist/.github/workflows/count-account.yml

25 lines
924 B
YAML
Raw Normal View History

2022-05-10 11:02:38 +00:00
name: Count by account
on:
push:
branches:
- main
jobs:
github:
runs-on: ubuntu-latest
container: ubuntu:latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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 ca-certificates
- run: >
2023-04-30 17:47:39 +00:00
grep '](https://github.com' [a-z]*.md | sed -re 's/^.*\]\(https:\/\/github.com\/([^\)]*).*/\1/' | xargs -I {} dirname {} | sort | uniq -c | sort -n -r
2022-05-10 11:02:38 +00:00
env:
GH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}