Update README.md #7
Workflow file for this run
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 Repo Report | |
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: "0 0 1 1 *" | |
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 repo_report.py | |
cat README.md | |
env: | |
ACCESS_TOKEN: ${{secrets.ACCESS_TOKEN}} | |
- 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 |