Skip to content

CI: make release workflows fork-friendly#1889

Open
ttw225 wants to merge 3 commits intocommitizen-tools:masterfrom
ttw225:ci/add-repo-filter
Open

CI: make release workflows fork-friendly#1889
ttw225 wants to merge 3 commits intocommitizen-tools:masterfrom
ttw225:ci/add-repo-filter

Conversation

@ttw225
Copy link
Contributor

@ttw225 ttw225 commented Mar 5, 2026

Description

This PR updates several GitHub Actions workflows so that release- and deploy-related jobs only run on the upstream repository:

  • bumpversion.yml
  • docspublish.yml
  • pythonpublish.yml
  • homebrewpublish.yml

This avoids confusing failures on forks (missing secrets, write permissions, external deploy targets), while keeping workflows useful and non-intrusive for new contributors.

Checklist

Was generative AI tooling used to co-author this PR?

  • Yes (please specify the tool below)

Generated-by: [Cursor] following the guidelines

Expected Behavior

Forks do not attempt to:

  • bump versions and create GitHub releases,
  • publish to PyPI,
  • update Homebrew formulas,
  • update and deploy documentation with org-level secrets.

Upstream commitizen-tools/commitizen continues to run all release and documentation workflows as before.

Steps to Test This Pull Request

Additional Context

Related issue: #1888

@codecov
Copy link

codecov bot commented Mar 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.99%. Comparing base (4fbeae7) to head (580294f).
⚠️ Report is 7 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1889   +/-   ##
=======================================
  Coverage   97.99%   97.99%           
=======================================
  Files          60       60           
  Lines        2689     2689           
=======================================
  Hits         2635     2635           
  Misses         54       54           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ttw225 ttw225 force-pushed the ci/add-repo-filter branch from cd4eb7a to 580294f Compare March 5, 2026 12:09
@bearomorphism
Copy link
Collaborator

Let's wait for feedback from other maintainers in case anyone has concerns about this change.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants