Skip to content

Commit

Permalink
refactor: modified the code to include the description
Browse files Browse the repository at this point in the history
  • Loading branch information
GhostVaibhav committed Jul 14, 2024
1 parent f2104b8 commit b7e2c94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/node.js.branch.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}' \
Expand All @@ -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" \
Expand All @@ -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,
Expand Down

0 comments on commit b7e2c94

Please sign in to comment.