Skip to content

rzr/url-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published