Update Repository List #85
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Repository List | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '30 5 * * 3' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- name: Install dependencies | |
run: | | |
python3 -m pip install -r requirements.txt | |
- name: Generate repository list | |
run: | | |
python3 update.py | |
- name: Commit and push changes | |
run: | | |
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com' | |
git config --global user.name 'github-actions[bot]' | |
git add . | |
if [ -n "$(git status --porcelain)" ]; then | |
git commit -m 'Update repository list' | |
git push origin HEAD | |
fi |