0
1
Fork 0
mirror of https://github.com/sokai/gh-stars.git synced 2025-10-11 07:50:40 +02:00

Initial commit

This commit is contained in:
sokai 2025-08-20 20:58:36 +02:00 committed by GitHub
commit 33c8183840
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 6644 additions and 0 deletions

34
.github/workflows/update-by-lang.yml vendored Normal file
View file

@ -0,0 +1,34 @@
name: Update by language
on:
workflow_dispatch:
schedule:
- cron: 0 0 * * *
jobs:
update-by-language:
name: update awesome-stars
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install starred
- name: Get repository name
run: echo "REPOSITORY_NAME=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
- name: Update repo category by language
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPOSITORY: ${{ env.REPOSITORY_NAME }}
USERNAME: ${{ github.repository_owner }}
run: |
starred \
--username ${USERNAME} \
--repository ${REPOSITORY} \
--token ${GITHUB_TOKEN} \
--sort \
--message "docs(language): bump data" \
--filename by-language.md