From 4019117888f92cb91b9c9561af8c47af18b0cf2b Mon Sep 17 00:00:00 2001 From: Vaibhav Sharma <48472541+GhostVaibhav@users.noreply.github.com> Date: Sun, 14 Jul 2024 12:56:08 +0530 Subject: [PATCH] refactor: added explicit env variables while creating the repo --- .github/workflows/node.js.branch.deploy.end.yml | 2 +- .github/workflows/node.js.branch.deploy.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.branch.deploy.end.yml b/.github/workflows/node.js.branch.deploy.end.yml index 1262c6f8..2b7cb2ec 100644 --- a/.github/workflows/node.js.branch.deploy.end.yml +++ b/.github/workflows/node.js.branch.deploy.end.yml @@ -23,7 +23,7 @@ jobs: - name: Deleting the new website's CNAME value from Cloudflare run: | curl --request DELETE \ - --url https://api.cloudflare.com/client/v4/zones/${{ secrets.CNAME_ZONE_ID }}/dns_records/$CNAME_ID \ + --url https://api.cloudflare.com/client/v4/zones/${{ secrets.CNAME_ZONE_ID }}/dns_records/${{ env.CNAME_ID }} \ --header 'Content-Type: application/json' \ --header 'X-Auth-Email: sharmavaibhav110028@gmail.com' \ --header 'X-Auth-Key: ${{ secrets.CNAME_KEY }}' diff --git a/.github/workflows/node.js.branch.deploy.yml b/.github/workflows/node.js.branch.deploy.yml index 4b151493..d3cb994e 100644 --- a/.github/workflows/node.js.branch.deploy.yml +++ b/.github/workflows/node.js.branch.deploy.yml @@ -37,7 +37,7 @@ jobs: "proxied": true, "type": "CNAME", "comment": "Temporary Feature Branch", - "id": "$CNAME_ID", + "id": ${{ env.CNAME_ID }}, "ttl": 3600 }' sleep 10