Skip to content

Commit eac76a1

Browse files
authored
Merge pull request #153 from javaevolved/copilot/change-schedule-for-social-posts
chore: change social post schedule to Monday + Thursday
2 parents f1ae4da + 870851b commit eac76a1

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/social-post.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: Weekly Social Post
1+
name: Twice-Weekly Social Post
22

33
on:
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

88
permissions:

secrets.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

specs/social-posts-spec.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
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
77
Use a **GitHub Actions scheduled workflow** that:
88
1. 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
1010
3. Commits the updated state back to the repo to track progress
1111
4. 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

0 commit comments

Comments
 (0)