Skip to content

Archive all posts

Archive all posts #346

Workflow file for this run

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