diff --git a/.github/workflows/node.js.branch.deploy.end.yml b/.github/workflows/node.js.branch.deploy.end.yml index dd4dfb62..9dc5fd41 100644 --- a/.github/workflows/node.js.branch.deploy.end.yml +++ b/.github/workflows/node.js.branch.deploy.end.yml @@ -15,11 +15,11 @@ jobs: run: sudo apt-get install -y jq - name: Getting the temporary CNAME record ID from the Repo and deleting it from Cloudflare run: | - echo "CNAME_ID=$(curl -L \ + export CNAME_ID=$(curl -L \ -H 'Accept: application/vnd.github+json' \ -H 'Authorization: Bearer ${{ secrets.GENERATE_TEMPORARY_BRANCH_WEBSITE }}' \ -H 'X-GitHub-Api-Version: 2022-11-28' \ - https://api.github.com/repos/Temporary-Feature-Branch/${{ github.ref_name }} | jq '.description')" >> $GITHUB_ENV + https://api.github.com/repos/Temporary-Feature-Branch/${{ github.ref_name }} | jq '.description') curl --request DELETE \ --url https://api.cloudflare.com/client/v4/zones/${{ secrets.CNAME_ZONE_ID }}/dns_records/'"$CNAME_ID"' \ --header 'Content-Type: application/json' \