matt-dray / rostrum-blog

:memo::bug: Blog: superseded source code for rostrum.blog
Other
6 stars 3 forks source link

Run the GHA with cron #64

Closed matt-dray closed 3 years ago

matt-dray commented 3 years ago

Normal flow: write new post, push it, Netlify publishes.

But the GHA might scrape the rostum.blog archive page faster than Netlify can re-serve it with the new post, so the README won't be up to date.

Could run it every day at midnight, or maybe there's a way to run an Action e.g. 30mins after a push to allow time for the new post to show up on the blog.

matt-dray commented 3 years ago

As per https://github.com/matt-dray/matt-dray/blob/master/.github/workflows/blog-post-workflow.yml

on:
  schedule:
    # Runs every day at midnight
    - cron: '0 0 * * *'