py #1133
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |