Add scheduled multi-repo workflow for automated daily Wordle/Connections data sync#5
Merged
Merged
Conversation
Agent-Logs-Url: https://github.com/28pins/CLIWordGames/sessions/19ba3116-1e51-4fc4-89f1-69891c7c441a Co-authored-by: 28pins <262898015+28pins@users.noreply.github.com>
Agent-Logs-Url: https://github.com/28pins/CLIWordGames/sessions/19ba3116-1e51-4fc4-89f1-69891c7c441a Co-authored-by: 28pins <262898015+28pins@users.noreply.github.com>
Agent-Logs-Url: https://github.com/28pins/CLIWordGames/sessions/19ba3116-1e51-4fc4-89f1-69891c7c441a Co-authored-by: 28pins <262898015+28pins@users.noreply.github.com>
Agent-Logs-Url: https://github.com/28pins/CLIWordGames/sessions/19ba3116-1e51-4fc4-89f1-69891c7c441a Co-authored-by: 28pins <262898015+28pins@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add GitHub Actions workflow to automate Wordle and Connections updates
Add scheduled multi-repo workflow for automated daily Wordle/Connections data sync
May 25, 2026
28pins
approved these changes
May 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a GitHub Actions workflow to automate
scripts/populate_dailyWords.jsexecution and propagate generated data updates acrossCLIWordGames,CLIGames-web,Wrdli, andCli-nnections. It supports both scheduled runs (0 0 * * 1) and manual dispatch, with automated commit/push per modified repository.Workflow trigger + permissions
.github/workflows/update-daily-words.ymlschedule: - cron: '0 0 * * 1'workflow_dispatchpermissions: contents: writeRepository orchestration
CLIWordGamesas the primary workspace.28pins/CLIGames-web,28pins/Wrdli,28pins/Cli-nnections) into sibling directories for writeback.CROSS_REPO_PUSH_TOKENfor cross-repo write access and fails early with a clear message if unset.Data generation + synchronization
node scripts/populate_dailyWords.jsAutomated commit/push behavior
git status --porcelain.github-actions[bot]github-actions[bot]@users.noreply.github.comOriginal prompt
Create a GitHub Actions workflow that runs every 2 weeks to automatically populate daily Wordle words and Connections puzzles by executing the
scripts/populate_dailyWords.jsscript, then commit and push the changes to all affected repositories (CLIWordGames, CLIGames-web, Wrdli, and Cli-nnections).The workflow should:
cron: '0 0 * * 1'workflow_dispatchThis enables automated updates without manual intervention from a server.
The following is the prior conversation context from the user's chat exploration (may be truncated):
User: Is it possible using github actions to every 2 weeks have a server run my node script and it changes my repos files and then the server committs that
Assistant: Yes — GitHub Actions can do that.
A common setup is:
cron.A few important notes:
git commitandgit push.permissions: contents: writeHere’s a simple example scheduled every 2 weeks:
A couple caveats:
cron: '0 0 */14 * *'is not a perfect “every 2 weeks” schedule in the calendar sense; it means “every 14 days of the month,” which can behave oddly across month boundaries.If you want, I can help you with:
User: It is this script
Assistant: Perfect! This script fetches daily Wordle and Connections puzzle data from the NYT API and writes it to multiple files across your repos.
Here's a GitHub Actions workflow that will run this every 2 weeks on GitHub's servers and commit the changes: