File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1717# Get the latest commit SHA from the deployment branch
1818DEPLOYED_SHA=$( curl -s -H " Authorization: token $DEPLOY_TOKEN " \
1919 -H " Accept: application/vnd.github.v3+json" \
20- " https://api.github.com /repos/$DEPLOY_REPO /git/refs/heads/$DEPLOY_BRANCH " \
20+ " $GITHUB_API_URL /repos/$DEPLOY_REPO /git/refs/heads/$DEPLOY_BRANCH " \
2121 | grep -o ' "sha": "[^"]*"' | head -1 | cut -d' "' -f4)
2222
2323if [ -z " $DEPLOYED_SHA " ]; then
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ wait_for_pages_deployment() {
5151 -H " Authorization: Bearer $TOKEN " \
5252 -H " Accept: application/vnd.github+json" \
5353 -H " X-GitHub-Api-Version: 2022-11-28" \
54- " https://api.github.com /repos/$REPO /pages/builds?per_page=100"
54+ " $GITHUB_API_URL /repos/$REPO /pages/builds?per_page=100"
5555 )
5656
5757 # Get the build ID for this commit SHA if present
You can’t perform that action at this time.
0 commit comments