-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: added some minor changes for the betterment of the code
- Loading branch information
1 parent
d14ceee
commit cdcfdda
Showing
2 changed files
with
2 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }}' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters