mirror of
https://github.com/sokai/gh-stars.git
synced 2025-10-10 23:40:39 +02:00
34 lines
1 KiB
YAML
34 lines
1 KiB
YAML
name: Update by language
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: 0/30 * * * *
|
|
jobs:
|
|
update-by-language:
|
|
name: update awesome-stars
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.13"
|
|
- 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
|