Skip to content

Commit

Permalink
refactor: deleted the echo command and replaced it with export
Browse files Browse the repository at this point in the history
  • Loading branch information
GhostVaibhav committed Jul 14, 2024
1 parent b7e2c94 commit 27f93c4
Showing 1 changed file with 2 additions and 2 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,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' \
Expand Down

0 comments on commit 27f93c4

Please sign in to comment.