Fix workflow
Some checks failed
Deploy DNS entries / deploy (push) Failing after 40s

This commit is contained in:
moritzrfs
2025-11-07 16:45:00 +01:00
parent e020bd0ff0
commit 53e3291aad

View File

@@ -17,14 +17,22 @@ jobs:
- name: Checkout Repository - name: Checkout Repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Install python requirements - name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Python dependencies in virtualenv
run: | run: |
python3 -m pip install --upgrade pip python3 -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip
pip install -r adguard-dns-tools/requirements.txt pip install -r adguard-dns-tools/requirements.txt
- name: Deploy DNS entries to AdGuard Home - name: Deploy DNS entries to AdGuard Home
run: | run: |
python3 adguard-dns-tools/main.py --sync source venv/bin/activate
python adguard-dns-tools/main.py --sync
working-directory: ${{ github.workspace }} working-directory: ${{ github.workspace }}
shell: bash shell: bash
env: env:
@@ -32,12 +40,10 @@ jobs:
ADGUARD_PASSWORD: ${{ env.ADGUARD_PASSWORD }} ADGUARD_PASSWORD: ${{ env.ADGUARD_PASSWORD }}
ADGUARD_URL: ${{ env.ADGUARD_URL }} ADGUARD_URL: ${{ env.ADGUARD_URL }}
JSON_FILE: ${{ env.JSON_FILE }} JSON_FILE: ${{ env.JSON_FILE }}
# write output and tell that it ran successfully
continue-on-error: false continue-on-error: false
timeout-minutes: 10 timeout-minutes: 10
id: deploy_dns id: deploy_dns
- name: Deployment Result - name: Deployment Result
run: |
echo "DNS entries deployed successfully to AdGuard Home."
if: success() if: success()
shell: bash run: echo "✅ DNS entries deployed successfully to AdGuard Home."