Skip to content

newly_confirmed_cases_daily #3945

newly_confirmed_cases_daily

newly_confirmed_cases_daily #3945

# This is a basic workflow to help you get started with Actions
name: newly_confirmed_cases_daily
on:
schedule:
- cron: '0 */4 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip3 install -r ${{ github.workspace }}/opendata-converters/requirements.txt
- name: Convert
run: |
cd ${{ github.workspace }}/opendata-converters
python3 newly_confirmed_cases_daily.py --output_path ${{ github.workspace }}/output/v1/newly_confirmed_cases_daily/latest.csv
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: ${{ github.workspace }}/output
clean: false
git-config-name: cocoa-statistics
git-config-email: noreply@keiji.dev