Update readme forecast #113
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 readme forecast | |
# schedlued execution is not granted at exact timings | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
update-readme: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout gh branch | |
uses: actions/checkout@v3 | |
with: | |
ref : gh-pages | |
- name: Set up python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.9" | |
- name: dependencies | |
run : | | |
pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install . | |
python -m update_readme_forecast.py | |
- name: Commit documentation changes | |
run: | | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git add . | |
git commit -m "Actions: Build documentation" -a || true | |
# The last command will fail if no changes were present, so we ignore | |
# the return code. | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
branch: gh-pages | |
github_token: ${{ secrets.GITHUB_TOKEN }} |