From b546d5b43ab8ff148532a65a43d0f3ad50582e33 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Thu, 9 May 2024 16:58:14 -0400 Subject: [PATCH] update records for destroy --- .github/workflows/arrow-aws.yml | 2 +- .github/workflows/arrow.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/arrow-aws.yml b/.github/workflows/arrow-aws.yml index dcf37cd..0fcfd55 100644 --- a/.github/workflows/arrow-aws.yml +++ b/.github/workflows/arrow-aws.yml @@ -159,7 +159,7 @@ jobs: RECORD_ID=$(curl --request GET \ --url https://api.cloudflare.com/client/v4/zones/${{ env.CLOUDFLARE_ZONE_ID }}/dns_records \ --header 'Content-Type: application/json' \ - --header "Authorization: Bearer ${{ env.CLOUDFLARE_API_TOKEN }}" | jq -r '.result[] | select(.name == "transmission.${{ env.ZONE_NAME }}") | .id') + --header "Authorization: Bearer ${{ env.CLOUDFLARE_API_TOKEN }}" | jq -r '.result[] | select(.name == "n8n2.${{ env.ZONE_NAME }}") | .id') curl --request DELETE \ --url https://api.cloudflare.com/client/v4/zones/${{ env.CLOUDFLARE_ZONE_ID }}/dns_records/${RECORD_ID} \ --header 'Content-Type: application/json' \ diff --git a/.github/workflows/arrow.yml b/.github/workflows/arrow.yml index 90f0280..3fe6617 100644 --- a/.github/workflows/arrow.yml +++ b/.github/workflows/arrow.yml @@ -147,7 +147,7 @@ jobs: RECORD_ID=$(curl --request GET \ --url https://api.cloudflare.com/client/v4/zones/${{ env.CLOUDFLARE_ZONE_ID }}/dns_records \ --header 'Content-Type: application/json' \ - --header "Authorization: Bearer ${{ env.CLOUDFLARE_API_TOKEN }}" | jq -r '.result[] | select(.name == "transmission.${{ env.ZONE_NAME }}") | .id') + --header "Authorization: Bearer ${{ env.CLOUDFLARE_API_TOKEN }}" | jq -r '.result[] | select(.name == "n8n2.${{ env.ZONE_NAME }}") | .id') curl --request DELETE \ --url https://api.cloudflare.com/client/v4/zones/${{ env.CLOUDFLARE_ZONE_ID }}/dns_records/${RECORD_ID} \ --header 'Content-Type: application/json' \