Skip to content

Commit

Permalink
refactor: added some minor changes for the betterment of the code
Browse files Browse the repository at this point in the history
  • Loading branch information
GhostVaibhav committed Jul 14, 2024
1 parent d14ceee commit cdcfdda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/node.js.branch.deploy.end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ jobs:
run: sudo apt-get install -y jq
- name: Getting the temporary CNAME record ID from the Repo
run: |
echo "CNAME_ID = $(curl -L \
echo "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
- 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/'"$CNAME_ID"' \
--header 'Content-Type: application/json' \
--header 'X-Auth-Email: [email protected]' \
--header 'X-Auth-Key: ${{ secrets.CNAME_KEY }}'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/node.js.branch.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ jobs:
"id": "'"$CNAME_ID"'",
"ttl": 3600
}'
sleep 10
- name: Installing dependencies
run: npm install
- name: Writing to environment variable
Expand Down

0 comments on commit cdcfdda

Please sign in to comment.