add using dns
This commit is contained in:
42
.github/workflows/run-script.yml
vendored
42
.github/workflows/run-script.yml
vendored
@@ -13,24 +13,30 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.13'
|
||||
- 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: Install Dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements.txt
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- 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
|
||||
- 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
|
||||
|
||||
Reference in New Issue
Block a user