Skip to content

Commit 068e494

Browse files
committed
Revert request page build through GitHub API
1 parent bad0f88 commit 068e494

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

entrypoint.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ git commit --allow-empty -m 'Deploy to GitHub pages'
2121
git push --force --quiet https://${GITHUB_PAT:-"x-access-token:$GITHUB_TOKEN"}@github.com/${GITHUB_REPOSITORY}.git master:${INPUT_TARGET_BRANCH}
2222
rm -rf .git
2323

24-
curl -XPOST -H"Authorization: token ${GITHUB_TOKEN}" -H"Accept: application/vnd.github.mister-fantastic-preview+json" https://api.github.com/repos/${GITHUB_REPOSITORY}/pages/builds
24+
# Tried https://developer.github.com/v3/repos/pages/#request-a-page-build
25+
# but not working: { "message": "Resource not accessible by integration", "documentation_url": "https://developer.github.com/v3/repos/pages/#request-a-page-build" }
26+
# curl -XPOST -H"Authorization: token ${GITHUB_TOKEN}" -H"Accept: application/vnd.github.mister-fantastic-preview+json" https://api.github.com/repos/${GITHUB_REPOSITORY}/pages/builds
2527

2628
cd "$GITHUB_WORKSPACE"
2729
echo "🎉 Content of $INPUT_BUILD_DIR has been deployed to GitHub Pages."

0 commit comments

Comments
 (0)