-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (36 loc) · 1.11 KB
/
update_readme_forecast.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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 }}