ryanvilbrandt / comic_git

A statically-hosted web comic server core intended to be hosted on github.io. For help getting started, click the Wiki link above!
23 stars 7 forks source link

Schedule comic updates #1

Closed ryanvilbrandt closed 4 years ago

ryanvilbrandt commented 4 years ago

Comic update should be able to run automatically, based on a time of day. The best (and only) way I can see how to do this is updating the cron settings on the GitHub Action.

Example:

on:
  push:
    branches:
      - master
  schedule:
    # Run at 12:00 on working days
    - cron: 0 12 * * 0-5

Not very new-user friendly, but what can you do?

ryanvilbrandt commented 4 years ago

A good default upload date to ship comic_git with is probably 0 8 * * WED

ryanvilbrandt commented 4 years ago

Use these websites for reference when describing cron in the wiki:

ryanvilbrandt commented 4 years ago

GitHub Actions reference page: https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions

Note that GitHub Action scheduling is done in UTC, so users will have to be educated in UTC.

ryanvilbrandt commented 4 years ago

Scheduling has been added to Github Actions. I'll leave it in for now to confirm it's working as intended. After that's confirmed, I'll comment it out.