Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Workflow file for this run

on:
# schedule: DISABLED in favor of more reliable Cloudflare worker, triggered at same frequency
# (GitHub cron ran about 2h after 00:00 UTC, so still acceptable
# but since worker is defined anyway and works better...)
# - cron: '0 0 1 * *' # run once at a beginning of every month
repository_dispatch:
types: [run]
jobs:
scrape:
name: Scrape invoice from bok and send it to custom payappka mail account
runs-on: ubuntu-latest
steps:
- name: Check out this repo
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install all necessary packages
run: pip install -r requirements.txt
- name: Create .env file
env:
ENV_FILE: ${{ secrets.ENV_FILE }}
run: printenv ENV_FILE > .env
- name: Run the scraping script
run: python main.py