From 13a83f6616219307b4397165208909d2021cf5d4 Mon Sep 17 00:00:00 2001 From: jasonBirchall Date: Wed, 26 Jun 2024 20:27:15 +0100 Subject: [PATCH] :construction_worker: Add a GitHub Action to print out "empty" hosted zones This will allows one and all to run the action using the click of a button. --- .github/workflows/check-empty-zones.yaml | 27 ++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/check-empty-zones.yaml diff --git a/.github/workflows/check-empty-zones.yaml b/.github/workflows/check-empty-zones.yaml new file mode 100644 index 00000000..50f7d3ec --- /dev/null +++ b/.github/workflows/check-empty-zones.yaml @@ -0,0 +1,27 @@ +name: Print out empty hosted zones # A hosted zone with only an NS and SOA record + +on: + workflow_dispatch: # Allows manual triggering + +jobs: + check-for-empty-zones: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Python 3.11 + uses: actions/setup-python@v5 + with: + python-version: 3.11 + + - name: Install dependencies + run: | + make install + + - name: Run check for unmanaged zones + id: check-zones + env: + AWS_ACCESS_KEY_ID: ${{ secrets.OCTODNS_AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.OCTODNS_AWS_SECRET_ACCESS_KEY }} + PYTHONUNBUFFERED: 1 + run: make check-empty-zones