Skip to content

fix: exclude activity-state.json from sync-leaderboard workflow commits #532

Closed

Description

@jagdish-15

PR #398 introduced data/activity-state.json, which is written by scripts/analyze-inactivity.js.

The analyze-inactivity.yml workflow correctly commits only inactive-users.json. However, the sync-leaderboard.yml workflow stages changes using git add . and only resets users.json and inactive-users.json, meaning activity-state.json will also be staged and committed on every leaderboard sync and cause conflicts when both workflows run together.

Affected File

  • .github/workflows/sync-leaderboard.yml

Expected Behaviour

activity-state.json should only be committed by analyze-inactivity.yml. The leaderboard sync workflow should ignore it.

Proposed Fix

After the existing git reset commands in sync-leaderboard.yml, add:

git reset -q activity-state.json

Activity

  1. added
    help wanted
    level:beginner
    on Aug 6, 2026
  2. Akshu121796 commented on Aug 8, 2026

    @Akshu121796
    Contributor

    Hello, @codepvg @jagdish-15,
    I’d like to work on this issue under gssoc'26.
    I’ve reviewed the workflow behavior and the proposed fix, and I can update sync-leaderboard.yml so that activity-state.json is excluded from leaderboard sync commits while preserving the existing workflow behavior.

    Could you please assign this issue to me? Thank you!

  3. Akshu121796 commented on Aug 10, 2026

    @Akshu121796
    Contributor

    Done solving, Have a look!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

help wantedlevel:beginnertype:devops

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions