Skip to content

Fix clone stats workflow writing wrong file path#69

Merged
Sendipad merged 1 commit intodevelopfrom
codex/fix-git-checkout-issue-for-clones.json
Mar 3, 2026
Merged

Fix clone stats workflow writing wrong file path#69
Sendipad merged 1 commit intodevelopfrom
codex/fix-git-checkout-issue-for-clones.json

Conversation

@Sendipad
Copy link
Copy Markdown
Owner

@Sendipad Sendipad commented Mar 3, 2026

Motivation

  • The scheduled workflow attempted to commit stats/clones.json but previously wrote clones.json to the repository root, causing fatal: pathspec 'stats/clones.json' did not match any files.
  • Ensure the workflow writes the artifact to the same path it later stages and pushes so runs no longer fail.

Description

  • Updated .github/workflows/clone-stats.yml so the Extract step creates the stats directory and writes the JSON to stats/clones.json instead of the repo root.
  • Added mkdir -p stats before writing to guarantee the directory exists.
  • No changes outside the workflow file were required.

Testing

  • Ran a local simulation of the Extract step with echo '{"count": 12}' > traffic.json && COUNT=$(jq '.count' traffic.json) && mkdir -p stats && echo "{ \"count\": $COUNT }" > stats/clones.json && cat stats/clones.json, which produced the expected JSON payload and file path.
  • Verified git status and committed the workflow change with git add .github/workflows/clone-stats.yml && git commit -m "Fix clone stats workflow output path", which succeeded.
  • Confirmed the workflow file diff contains the mkdir -p stats and target stats/clones.json updates and that no tests or other CI steps were broken by this change.

Codex Task

@Sendipad Sendipad merged commit ade3450 into develop Mar 3, 2026
6 checks passed
@Sendipad Sendipad deleted the codex/fix-git-checkout-issue-for-clones.json branch March 3, 2026 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant