-
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.
Merge pull request #43 from GhostVaibhav/hotfix-update-ci-pipeline
Refactored some code to have correct JSON parsed
- Loading branch information
Showing
3 changed files
with
8 additions
and
8 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 |
---|---|---|
|
@@ -16,14 +16,14 @@ jobs: | |
- name: Getting the temporary CNAME record ID from the Repo | ||
run: | | ||
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" \ | ||
-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/${{ env.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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,5 +44,5 @@ jobs: | |
source-directory: 'build' | ||
destination-github-username: 'Temporary-Feature-Branch' | ||
destination-repository-name: '${{ github.ref_name }}-Simple' | ||
user-email: sharmavaibhav110028@gmail.com | ||
user-email: [email protected].com | ||
target-branch: main |
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 |
---|---|---|
|
@@ -37,7 +37,7 @@ jobs: | |
"proxied": true, | ||
"type": "CNAME", | ||
"comment": "Temporary Feature Branch", | ||
"id": ${{ env.CNAME_ID }}, | ||
"id": "'"$CNAME_ID"'", | ||
"ttl": 3600 | ||
}' | ||
sleep 10 | ||
|
@@ -61,7 +61,7 @@ jobs: | |
https://api.github.com/orgs/Temporary-Feature-Branch/repos \ | ||
-d '{ | ||
"name": "${{ github.ref_name }}-Simple", | ||
"description": "$CNAME_ID", | ||
"description": "'"$CNAME_ID"'", | ||
"homepage": "https://github.com/GhostVaibhav/Simple", | ||
"visibility": "public", | ||
"has_issues": false, | ||
|
@@ -77,7 +77,7 @@ jobs: | |
source-directory: 'build' | ||
destination-github-username: 'Temporary-Feature-Branch' | ||
destination-repository-name: '${{ github.ref_name }}-Simple' | ||
user-email: sharmavaibhav110028@gmail.com | ||
user-email: [email protected].com | ||
target-branch: main | ||
- name: Enabling GitHub Pages for the temporary repository | ||
run: | | ||
|