markdown-tweet-scheduler icon indicating copy to clipboard operation
markdown-tweet-scheduler copied to clipboard

Queueing system will post the same tweet post if user doesn't rename the file after posting

Open reidjs opened this issue 4 years ago • 3 comments

Queueing system shouldn't be used until this is fixed (Post by date should be unaffected)

The github action doesn't rename the file in the repo, so it will just post the highest priority tweet every day (q-1).

After posting a queued tweet, we have to automatically:

  1. rename the file to something that doesn't start with q-, ideally the name should be updated to the date it was posted
  2. commit the name change and,
  3. push the updated file to the repo.

Otherwise, at the next run it will attempt to tweet the same thing again.

reidjs avatar Aug 08 '21 15:08 reidjs

https://github.com/stefanzweifel/git-auto-commit-action

reidjs avatar Aug 10 '21 22:08 reidjs

In order for that to work, we will need to split the tweet by queue out from the split by date code

reidjs avatar Aug 10 '21 22:08 reidjs

If a queued tweet is posted, the workflow needs to do rename the queued file to the correct date convention using the git auto commit action

reidjs avatar Aug 13 '21 13:08 reidjs