change action

This commit is contained in:
2024-11-16 22:36:41 +03:30
parent 6eae07f5de
commit ff1a28ebdf

33
.github/workflows/run-script.yml vendored Normal file
View File

@@ -0,0 +1,33 @@
name: Run Script
on:
push:
branches:
- main
schedule:
- cron: "0 * * * *"
jobs:
run-script:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Python Script
env:
EITAAYAR_TOKEN: ${{ secrets.EITAAYAR_TOKEN }}
CHAT_ID: ${{ secrets.CHAT_ID }}
run: |
python main.py