Skip to content

fix(ci): scope GitHub release sync to the target repository#7

Merged
Dango233 merged 1 commit into
Intelligent-Internet:mainfrom
liujuanjuan1984:hotfix
May 20, 2026
Merged

fix(ci): scope GitHub release sync to the target repository#7
Dango233 merged 1 commit into
Intelligent-Internet:mainfrom
liujuanjuan1984:hotfix

Conversation

@liujuanjuan1984
Copy link
Copy Markdown
Contributor

Summary

Fix the release sync job so it does not depend on a local .git checkout to resolve the repository.

What changed

  • add GH_REPO=Intelligent-Internet/CommonGround to sync_github_release
  • pass --repo "$GH_REPO" to all gh release commands:
    • gh release view
    • gh release create
    • gh release upload

Why

The sync_github_release job only downloads release artifacts and does not run actions/checkout. As a result, the job workspace is not a git repository, and gh release ... fails with:

failed to run git: fatal: not a git repository (or any of the parent directories): .git

Scoping the gh commands explicitly to Intelligent-Internet/CommonGround removes that dependency and allows the release sync step to run correctly without a checkout.

Validation

  • verified the workflow diff only touches .github/workflows/publish.yml
  • ran git diff --check

@Dango233 Dango233 merged commit 10b50dd into Intelligent-Internet:main May 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants