Skip to content

Scheduled update

Scheduled update #328

name: Scheduled update
on:
workflow_dispatch:
schedule:
- cron: '0 13 * * 1,6'
jobs:
update-data:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Run the script
run: |
python ./get_kaisou_data.py
- name: Add & Commit
uses: EndBug/add-and-commit@v7
with:
message: 'Scheduled update ${{ steps.date.outputs.date }}'