Skip to content

Fetch Books

Fetch Books #42

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Fetch Books
# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
schedule:
- cron: '0 0 1 * *'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
fetchBooks:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2.3.1
with:
python-version: '3.x'
cache: 'pip'
cache-dependency-path: '**/catalog/requirements.txt'
architecture: 'x64'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r catalog/requirements.txt
# Runs a set of commands using the runners shell
- name: Run fetch.py
run: |
cd catalog
python fetch.py
- name: Commit and Push
uses: EndBug/add-and-commit@v9