Archive all posts #346
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Archive all posts | |
on: | |
schedule: | |
- cron: 0 12 * * * | |
workflow_dispatch: | |
jobs: | |
archive: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code. | |
uses: actions/checkout@v4 | |
- name: Retrieve all posts | |
run: | | |
echo "POSTS=\"$(ls ./posts | sort -n | sed 's/.md$//g' | sed 's/^/writing.natwelch.com\/post\//')\"" >> $GITHUB_OUTPUT | |
id: posts | |
# docker run -it --rm secsi/waybackpy --url "<target_url>" --user_agent "my-unique-user-agent" --oldest | |
- uses: JamieMagee/[email protected] | |
with: | |
url: |- | |
writing.natwelch.com | |
natwelch.com | |
${{ steps.posts.outputs.POSTS }} | |
saveErrors: false | |
saveOutlinks: true | |
saveScreenshot: true |