You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reduce sync-issues workflow frequency to daily schedule only #91
The sync-issues.yml workflow currently triggers on multiple events:
Schedule: daily at midnight UTC (0 0 * * *)
Issues:opened, reopened, closed
Pull requests:opened, closed
Manual:workflow_dispatch
The event-driven triggers (issues and pull_request) cause the workflow to run on every issue or PR state change, which clutters the Actions tab and generates unnecessary commits and workflow runs.
Proposed Change
Remove the issues and pull_request event triggers, keeping only:
Schedule: daily at night (e.g. 0 2 * * * — 2:00 AM UTC)
Manual:workflow_dispatch (for on-demand syncs when needed)
This also allows simplifying the target branch decision logic. Currently the workflow handles a pull_request merged-into-main case that becomes dead code once the PR trigger is removed. The simplified logic would be:
workflow_dispatch with target-branch input → use that value (validated against allowed branches)
Everything else (schedule, dispatch without input) → dev
Note: The workflow_dispatch trigger with target-branch input must be preserved — it is used by release.yml (targets release/$VERSION) and post-release.yml (targets dev) to trigger on-demand syncs during the release cycle.
Acceptance Criteria
Remove issues and pull_request triggers from sync-issues.yml
Implementation plan: fix sync-issues schedule trigger and align main/dev
Root Cause
PR #95 partially implemented issue #91 on main (removed issues/pull_request triggers, adjusted cron) but left a gap in the target branch logic. On schedule events, github.event.inputs does not exist, so:
c) Callers are unaffected: release.yml dispatches with -f "target-branch=release/$VERSION" and post-release.yml with -f "target-branch=dev" — neither passes output-dir or commit-msg, so they get defaults automatically.
3. Delete .github_data/ on this branch
Remove the 31 stale files in .github_data/ (issues + pull-requests subdirectories). These were the old sync target and will never be updated again.
4. Commit, push, and create PR to main
Can be multiple commits (e.g., one for the workflow fix, one for the .github_data deletion). PR references issue #91.
Phase 2: Sync to dev (after main PR merges)
Create a branch from dev (e.g. chore/sync-main-to-dev)
Merge main into it — this brings the workflow fix and .github_data deletion
Additionally delete the 95 stale .github_data/ files on dev (they were added independently on dev and won't be removed by the merge)
Update CHANGELOG under ## Unreleased if warranted (likely a one-liner noting the schedule fix)
PR to dev for review
Risks / Notes
The force-update input reference already uses &&/|| but still depends on github.event.inputs.force-update which is empty on schedule. Current behavior: empty evaluates to falsy, so || returns '' — the sync action treats empty updated-since as "use last-sync state". This is correct; no change needed to the logic, but the parenthesization should be verified.
Activity
chore: update sync issues workflow schedule
chore: reduce sync-issues workflow frequency and simplify triggers (#95)
chore: merge main into dev to sync workflow changes from #91
chore: merge main into dev to apply changes from #91 (#98)
gerchowl commentedon Feb 20, 2026
Closed by merged PR #95 (chore/91-reduce-sync-issues-frequency, merged 2026-02-19). Workflow frequency reduced to daily schedule only.
c-vigo commentedon Feb 20, 2026
@gerchowl the 2am sync failed, leave open until I fix it
c-vigo commentedon Feb 20, 2026
Implementation plan: fix sync-issues schedule trigger and align main/dev
Root Cause
PR #95 partially implemented issue #91 on
main(removedissues/pull_requesttriggers, adjusted cron) but left a gap in the target branch logic. On schedule events,github.event.inputsdoes not exist, so:ref: ${{ github.event.inputs.target-branch }}resolves to empty — checkout defaults tomain(harmless but wrong: issue Reduce sync-issues workflow frequency to daily schedule only #91 says schedule should targetdev)TARGET_BRANCH: refs/heads/${{ github.event.inputs.target-branch }}resolves torefs/heads/— commit-action gets a 404 "Not Found"The fix: add
|| 'dev'fallbacks everywheregithub.event.inputs.*is referenced, so schedule triggers default todev.State Differences (main vs dev)
devalready has several improvements overmainfor this file:actions/checkout@34e11... # v4)output-dir: 'docs'instead of.github_dataruns-on: ubuntu-22.04instead ofubuntu-latesttimeout-minutes: 10permissions: {}sync-issues-state-The plan is to use dev's version as the base and add the fix + new inputs on top, so both branches converge.
File Inventory
.github_data/onmain: 31 files (stale, will never be written to again since output-dir changed todocs).github_data/ondev: 95 files (also stale, same reason)docs/ondev: 104 files (active sync target)Phase 1: Bugfix PR to main
1. Create and link branch
Branch name
bugfix/91-fix-sync-issues-schedulefrommain, linked to issue #91 viagh issue develop.2. Replace workflow file with dev version + fix + enhancements
Take
.github/workflows/sync-issues.ymlfromdevas the base (it already has all the improvements above). Then apply these changes:a) Add
output-dirandcommit-msgworkflow_dispatch inputs (with defaultsdocsandchore: sync issues and PRs):b) Add
|| 'default'fallback for all input references (schedule events have no inputs):ref: ${{ github.event.inputs.target-branch || 'dev' }}output-dir: ${{ github.event.inputs.output-dir || 'docs' }}TARGET_BRANCH: refs/heads/${{ github.event.inputs.target-branch || 'dev' }}COMMIT_MESSAGE: ${{ github.event.inputs.commit-msg || 'chore: sync issues and PRs' }}updated-since: ${{ (github.event.inputs.force-update == 'true' && '1970-01-01T00:00:00Z') || '' }}c) Callers are unaffected:
release.ymldispatches with-f "target-branch=release/$VERSION"andpost-release.ymlwith-f "target-branch=dev"— neither passesoutput-dirorcommit-msg, so they get defaults automatically.3. Delete
.github_data/on this branchRemove the 31 stale files in
.github_data/(issues + pull-requests subdirectories). These were the old sync target and will never be updated again.4. Commit, push, and create PR to main
Can be multiple commits (e.g., one for the workflow fix, one for the
.github_datadeletion). PR references issue #91.Phase 2: Sync to dev (after main PR merges)
dev(e.g.chore/sync-main-to-dev)maininto it — this brings the workflow fix and.github_datadeletion.github_data/files on dev (they were added independently on dev and won't be removed by the merge)## Unreleasedif warranted (likely a one-liner noting the schedule fix)devfor reviewRisks / Notes
force-updateinput reference already uses&&/||but still depends ongithub.event.inputs.force-updatewhich is empty on schedule. Current behavior: empty evaluates to falsy, so||returns''— the sync action treats emptyupdated-sinceas "use last-sync state". This is correct; no change needed to the logic, but the parenthesization should be verified.dev, sync todocs/, and commit todev— the desired behavior per issue Reduce sync-issues workflow frequency to daily schedule only #91.fix(ci): add fallback defaults for schedule trigger inputs
chore: remove stale .github_data directory
chore: merge main into dev to apply sync-issues fix from #91
chore: remove stale .github_data directory from dev
docs: add sync-issues schedule fix to CHANGELOG
fix(ci): fix sync-issues schedule trigger and align with dev (#100)
chore: merge main into dev after sync-issues fix (#91) (#107)
chore: release 0.3.0 (#270)