change action
This commit is contained in:
33
.github/workflows/run-script.yml
vendored
Normal file
33
.github/workflows/run-script.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user