43 lines
965 B
YAML
43 lines
965 B
YAML
name: Run Script
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
schedule:
|
|
- cron: "30 */3 * * *"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
run-script:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Set custom DNS
|
|
run: |
|
|
echo -e "nameserver 185.51.200.2\nnameserver 178.22.122.100" | sudo tee /etc/resolv.conf > /dev/null
|
|
cat /etc/resolv.conf
|
|
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.13'
|
|
|
|
- name: Install Dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements.txt
|
|
|
|
- name: Run Python Script
|
|
env:
|
|
BARGHEMAN_TOKEN: ${{ secrets.BARGHEMAN_TOKEN }}
|
|
EITAAYAR_TOKEN: ${{ secrets.EITAAYAR_TOKEN }}
|
|
BILL_IDS: ${{ secrets.BILL_IDS }}
|
|
CHAT_ID: ${{ secrets.CHAT_ID }}
|
|
run: |
|
|
python main.py
|