indexer finished #5
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 Directory | |
on: | |
push: | |
paths: | |
- 'directory/**' | |
workflow_dispatch: | |
jobs: | |
update-directory: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Update DIRECTORY.md | |
run: | | |
pip install pyyaml requests | |
python3 indexer.py | |
- name: Commit changes | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add DIRECTORY.md | |
git commit -m "Update DIRECTORY.md" || echo "No changes to commit" | |
git push |