markdown-tweet-scheduler
markdown-tweet-scheduler copied to clipboard
Instead of running daily, schedule the script to run at the next tweet scheduled time
Currently, the script runs daily, regardless of whether or not a tweet is scheduled. It would be better to schedule the workflow at the time of the next tweet. This would fix issue #1 as well.
An idea:
Allow for a frontmatter section where the poster can optionally specify time of day.
The tweet will post at a default time if there's no frontmatter
There will need to be two workflows
- On push, determine the next time the script needs to run
- On schedule specified in (1), run the script.