Added checkout step
This commit is contained in:
parent
123ff15b1c
commit
e0f579c12b
@ -15,21 +15,20 @@ jobs:
|
|||||||
update-dns:
|
update-dns:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
- name: Set up Python Virtual Environment
|
- name: Set up Python Virtual Environment
|
||||||
run: |
|
run: |
|
||||||
python3 -m venv venv
|
python3 -m venv venv
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: |
|
run: |
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
pip install pyyaml requests
|
pip install pyyaml requests
|
||||||
|
|
||||||
- name: Update Cloudflare DNS
|
- name: Update Cloudflare DNS
|
||||||
env:
|
env:
|
||||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}
|
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}
|
||||||
run: |
|
run: |
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
pwd && ls -la
|
|
||||||
python ./update_cloudflare_dns.py
|
python ./update_cloudflare_dns.py
|
||||||
|
Reference in New Issue
Block a user