Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
ngozzi authored Dec 22, 2023
1 parent 1fce743 commit 60fa51d
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/forecasting_weeks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: GenerateBaseline

on:

workflow_dispatch:

# scheduled run every Wednesday at 03.15 a.m. (Wednesday 02.15 a.m. UTC)
# TODO for the time being upload is Thursday at 03.15 a.m. (Thursday 02.15 a.m. UTC)
schedule:
- cron: '00 13 * * 5'



jobs:

update_forecasting_weeks_job:
if: github.repository_owner == 'Predizioni-Epidemiologiche-Italia'
runs-on: ubuntu-latest
steps:

# Checkout the python tools repo
# -------------------------------------------
- name: checkout python tools repo
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: 'Predizioni-Epidemiologiche-Italia/hub-tools'
ref: 'main'
path: './tools/'

# Checkout the data repository
# -------------------------------------------
- name: checkout data repo
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: 'Predizioni-Epidemiologiche-Italia/Influcast'
ref: 'main'
path: './repo/'



# Run Pyton code
# -------------------------
- uses: actions/setup-python@v4
with:
python-version: '3.10'

- run: pip install pandas==1.2.5 isoweek==1.3.3

- name: Pyhton
id: update_forecasting_weeks
run: |
python ./tools/code/update_forecasting_weeks.py --hub_path ./repo
- name: Commit data repo changes
uses: EndBug/add-and-commit@v7
with:
cwd: './repo'
message: "Update data storage"
default_author: github_actions
push: true

0 comments on commit 60fa51d

Please sign in to comment.