Skip to content

JamieMagee/wayback

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

Repository files navigation

Wayback Machine GitHub Action

GitHub marketplace GitHub Workflow Status GitHub release (latest SemVer) License

Save pages to the Wayback Machine as part of your CI/CD pipeline. If you find this useful, please donate to the Internet Archive.

Examples

Basic

name: Save my blog
uses: JamieMagee/wayback@v2.1.0
with:
  url: jamiemagee.co.uk

Advanced

name: Save my blog
uses: JamieMagee/wayback@v2.1.0
with:
  url: |-
    jamiemagee.co.uk
    katmagee.net
  saveErrors: false
  saveOutlinks: true
  saveScreenshot: true

Inputs

url

[Required] The web page to save to the Wayback Machine. Can include or exclude http://, https://, www., etc. Can be a single URL or a list of URLs.

saveErrors

If true, the Wayback Machine will save web pages that return an HTTP status code in the 4xx or 5xx range. Defaults to true.

saveOutlinks

If true, the Wayback Machine will save any links to external web pages. Defaults to false.

saveScreenshot

If true, the Wayback Machine will save a screenshot of the web page. Defaults to false.

Outputs

wayback_url

If the save attempt was successful, this parameter is set to the Wayback Machine URL. If the attempt failed, it is set to an empty string.

License

Code in this repository is licensed under the MIT license. Details can be found in the LICENSE file.