File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Weekly Social Post
1+ name : Twice- Weekly Social Post
22
33on :
44 schedule :
5- - cron : ' 0 14 * * 1' # Every Monday at 14:00 UTC (10 AM ET)
5+ - cron : ' 0 14 * * 1,4 ' # Every Monday and Thursday at 14:00 UTC (10 AM ET)
66 workflow_dispatch : # Manual trigger
77
88permissions :
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ Used by GitHub Copilot integrations. Not currently referenced in any workflow fi
2525
2626### Twitter / X Secrets
2727
28- Used for automated weekly social media posting of Java pattern updates to X (Twitter) via the X API v2.
28+ Used for automated twice- weekly social media posting of Java pattern updates to X (Twitter) via the X API v2.
2929
30- - ** Workflow:** [ ` .github/workflows/social-post.yml ` ] ( .github/workflows/social-post.yml ) — runs every Monday at 14:00 UTC
30+ - ** Workflow:** [ ` .github/workflows/social-post.yml ` ] ( .github/workflows/social-post.yml ) — runs every Monday and Thursday at 14:00 UTC
3131- ** Post script:** [ ` html-generators/socialpost.java ` ] ( html-generators/socialpost.java )
3232- ** Spec:** [ ` specs/social-posts-spec.md ` ] ( specs/social-posts-spec.md )
Original file line number Diff line number Diff line change 1- # Automated Weekly Social Posts — Specification
1+ # Automated Twice- Weekly Social Posts — Specification
22
33## Problem
4- Post one pattern per week to X/Twitter, covering all 113+ patterns ( ~ 2.2 years of content) . Fully automated via GitHub Actions with no manual steps.
4+ Post one pattern twice a week to X/Twitter, covering all 113+ patterns. Fully automated via GitHub Actions with no manual steps.
55
66## Approach
77Use a ** GitHub Actions scheduled workflow** that:
881 . Reads a pre-shuffled queue file (` social/queue.txt ` ) listing all pattern keys
9- 2 . Each Monday, picks the next unposted pattern, posts to X/Twitter
9+ 2 . Each Monday and Thursday , picks the next unposted pattern, posts to X/Twitter
10103 . Commits the updated state back to the repo to track progress
11114 . When all patterns are exhausted, reshuffles and starts over
1212
@@ -56,7 +56,7 @@ JBang script that:
5656### 3. GitHub Actions Workflow
5757** File:** ` .github/workflows/social-post.yml `
5858
59- - Schedule: every Monday at 14:00 UTC (10 AM ET)
59+ - Schedule: every Monday and Thursday at 14:00 UTC (10 AM ET)
6060- Manual dispatch support (` workflow_dispatch ` )
6161- Concurrency group prevents double-posts
6262- Commits updated state back to repo
You can’t perform that action at this time.
0 commit comments