From b7e2c940b6adde3113037a59881ce65ea5a40bc7 Mon Sep 17 00:00:00 2001 From: Vaibhav Sharma <48472541+GhostVaibhav@users.noreply.github.com> Date: Sun, 14 Jul 2024 15:15:07 +0530 Subject: [PATCH] refactor: modified the code to include the description --- .github/workflows/node.js.branch.deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/node.js.branch.deploy.yml b/.github/workflows/node.js.branch.deploy.yml index 6a28e416..f8dd3acd 100644 --- a/.github/workflows/node.js.branch.deploy.yml +++ b/.github/workflows/node.js.branch.deploy.yml @@ -28,7 +28,7 @@ jobs: - name: Creating the new website's CNAME value on Cloudflare and creating a new repository run: | echo "CNAME_ID=$(echo -n ${{ github.run_id }} | sha256sum | cut -c-32)" >> $GITHUB_ENV - echo "REAL_ID=$(curl --request POST \ + export REAL_ID=$(curl --request POST \ --url https://api.cloudflare.com/client/v4/zones/${{ secrets.CNAME_ZONE_ID }}/dns_records \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer ${{ secrets.CNAME_KEY }}' \ @@ -41,7 +41,7 @@ jobs: "comment": "Temporary Feature Branch", "id": "'"$CNAME_ID"'", "ttl": 3600 - }' | jq '.result.id')" >> $GITHUB_ENV + }' | jq '.result.id') curl -L \ -X POST \ -H "Accept: application/vnd.github+json" \ @@ -50,7 +50,7 @@ jobs: https://api.github.com/orgs/Temporary-Feature-Branch/repos \ -d '{ "name": "${{ github.ref_name }}-Simple", - "description": "'"$REAL_ID"'", + "description": '"$REAL_ID"', "homepage": "https://github.com/GhostVaibhav/Simple", "visibility": "public", "has_issues": false,