Build README #944
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: Build README | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Update README | |
run: |- | |
python build_readme.py | |
cat README.md | |
- name: Commit and push if changed | |
run: |- | |
git diff | |
git config --global user.email "readme-bot@example.com" | |
git config --global user.name "README-bot" | |
git add -A | |
git commit -m "Updated content" || exit 0 | |
git push | |
- name: Run awesome_bot | |
uses: docker://dkhamsing/awesome_bot:latest | |
with: | |
args: --allow-timeout --allow-dupe --allow-redirect README.md |