Skip to content

.github/workflows/main.yml #148

.github/workflows/main.yml

.github/workflows/main.yml #148

Workflow file for this run

on:
workflow_dispatch:
schedule:
- cron: '0 11 * * 6'
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/requirements.txt
- name: Run script
env:
UBIT_USERNAME: ${{ secrets.UBIT_USERNAME }}
UBIT_PASSWORD: ${{ secrets.UBIT_PASSWORD }}
FORWARD_TO_EMAIL: ${{ secrets.FORWARD_TO_EMAIL }}
run: python src/script.py --webdriver-executable-path geckodriver --forward-unread-mail