diff --git a/.github/workflows/node.js.branch.deploy.end.yml b/.github/workflows/node.js.branch.deploy.end.yml index 2b7cb2ec..15cc23d7 100644 --- a/.github/workflows/node.js.branch.deploy.end.yml +++ b/.github/workflows/node.js.branch.deploy.end.yml @@ -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: sharmavaibhav110028@gmail.com' \ --header 'X-Auth-Key: ${{ secrets.CNAME_KEY }}' diff --git a/.github/workflows/node.js.branch.deploy.push.yml b/.github/workflows/node.js.branch.deploy.push.yml index 0f289981..cd946999 100644 --- a/.github/workflows/node.js.branch.deploy.push.yml +++ b/.github/workflows/node.js.branch.deploy.push.yml @@ -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: 48472541+GhostVaibhav@users.noreply.github.com target-branch: main diff --git a/.github/workflows/node.js.branch.deploy.yml b/.github/workflows/node.js.branch.deploy.yml index d3cb994e..4dcc5fb6 100644 --- a/.github/workflows/node.js.branch.deploy.yml +++ b/.github/workflows/node.js.branch.deploy.yml @@ -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: 48472541+GhostVaibhav@users.noreply.github.com target-branch: main - name: Enabling GitHub Pages for the temporary repository run: |