Skip to content

py

py #1133

Workflow file for this run

name: py
on:
schedule:
- cron: "5 22 * * *" # Runs at 00:05 UTC everyday
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.8' # You can specify a newer version if needed
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y chromium-browser
python -m pip install --upgrade pip
pip install -r github_action/requirements.txt
- name: Execute Python Script
run: |
python github_action/main.py
env:
key: ${{ secrets.BOT_TOKEN }}