Save pages to the Wayback Machine as part of your CI/CD pipeline. If you find this useful, please donate to the Internet Archive.
name: Save my blog
uses: JamieMagee/wayback@v2
with:
url: jamiemagee.co.ukIf your repository has a CNAME file (e.g. for GitHub Pages), the action will
automatically use the domain from that file. No url input is needed.
name: Save my site
uses: JamieMagee/wayback@v2name: Save my blog
uses: JamieMagee/wayback@v2
with:
url: |-
jamiemagee.co.uk
katmagee.net
saveErrors: false
saveOutlinks: true
saveScreenshot: true[Optional] 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.
If not provided, the action will attempt to detect the URL from a CNAME file in the repository.
If true, the Wayback Machine will save web pages that return an HTTP status code in the 4xx or 5xx range.
Defaults to true.
If true, the Wayback Machine will save any links to external web pages.
Defaults to false.
If true, the Wayback Machine will save a screenshot of the web page.
Defaults to false.
If true, skip checking whether this is the first capture of the URL. Makes captures faster.
Defaults to false.
Only capture the URL if the most recent existing capture is older than this value. Accepts SPN2 timedelta strings (e.g. 1d, 3h 20m) or plain seconds (e.g. 3600). Supports a comma-separated pair (e.g. 1d,7d) to apply a different value to outlinks.
Wayback Machine URL of the last successful capture in the run. Empty if no capture succeeded.
Newline-separated list of Wayback Machine URLs for every successful capture in the run. Useful when archiving multiple URLs.
Screenshot URL (or newline-separated list) when saveScreenshot is true and the capture produced a screenshot.
Code in this repository is licensed under the MIT license. Details can be found in the LICENSE file.