Skip to content

url-action

Actions
Check availability of a website useful to tell if gh-pages are enabled by running curl
0.0.1
LatestPre-release
By rzr
Star (0)

URL-ACTION

CI CI/gh-pages

URL: https://github.com/rzr/url-action

Check availability of a website useful to tell if gh-pages are enabled by running curl

For demos, check status of open PRs:

https://github.com/rzr/url-action/pulls

URL AVAILABILITY

Usage is straightforward check sample file:

.github/workflows/url.yaml

It just probe availability of URL using curl command.

if url parameter is omitted, then by default action will check if project has a github page online.

GITHUB PAGES AVAILABILITY

An other more advanced recipe that attempt to deploy to gh-pages,

.github/workflows/gh-pages.yaml

If URL of github-page is not available, it is assumed that gh-pages is not enabled then it will just bypass and make the workflow successful.

For the record i made it to prevent deploying to gh-pages, when forking projects that have this feature enabled.

Typical observed issue when using actions/deploy-pages@v4

Fetching artifact metadata for "github-pages" in this workflow run
Found 3 artifact(s)
Creating Pages deployment with payload:
(...)
Error: Creating Pages deployment failed
Error: HttpError: Not Found
(...)
Error: Error: Failed to create deployment (status: 404) with build version BADC0DE. Request ID ...
Ensure GitHub Pages has been enabled: https://github.com/.../.../settings/pages

WEBHOOKS

Forward error code on to an other URL, see examples workflows .

SOURCES

action.yml

API is intentionally not yet documented until a major version is released.

RESOURCES

url-action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Check availability of a website useful to tell if gh-pages are enabled by running curl
0.0.1
LatestPre-release
By rzr

url-action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.