chore: remove release-please workflow
Part of a batch across all Flagsmith repos that still carry an in-repo release-please workflow.
Why
github-webhook-handler already runs release-please for any repo with release-please-config.json and .release-please-manifest.json at its root. This repo has both.
It isn't doing so yet, because of a deliberate handover guard in should_run_release_please:
has_workflow = any(
"release-please" in name and name.endswith((".yml", ".yaml"))
for name in workflow_filenames
)
return (has_config and has_manifest) and not has_workflow
While this workflow exists the handler stands down and reports "release-please is not configured for this repository." Deleting it flips has_workflow to false and the handler takes over on the next push to the default branch. No gap, nothing to enable.
Verified before opening
- Root
release-please-config.jsonand.release-please-manifest.jsonboth present (checked by HTTP status, not output parsing). - The
flagsmith-engineeringapp is installed org-wide (repository_selection: all) and subscribed topush. - This workflow runs release-please and nothing else ā no publish step gated on
release_created/releases_created, and no other workflow depends on it viaworkflow_run. - Proven end to end:
github-webhook-handleritself has no release-please workflow and its releases are cut byflagsmith-engineering[bot].
Security benefit
Tag and release creation moves off RELEASE_PLEASE_GITHUB_TOKEN ā a PAT on the flagsmithdev user account, held as an org secret and last rotated 2024-07-19 ā onto a short-lived GitHub App installation token. Once every repo is cut over, that PAT can be retired.
Downstream automation is unaffected: the handler creates releases and tags with an app installation token, so release and tag-push events still fire for workflows that listen for them.
How to confirm after merge
Merging is itself a push to the default branch, so it self-triggers. The release-please check on the merge commit should switch from github-actions to flagsmith-engineering and report "release-please ran successfully." If anything looks wrong, git revert restores the previous behaviour.
š¤ Generated with Claude Code
Summary by cubic
Removes the in-repo release-please workflow so release orchestration moves to github-webhook-handler. The handler runs release-please on default-branch pushes for any repo with release-please-config.json and .release-please-manifest.json at its root, but deliberately stands down while a release-please workflow exists ā deleting this file is the cutover.
Key details
- Tag and release creation moves off the long-lived
RELEASE_PLEASE_GITHUB_TOKENPAT onto a short-lived GitHub App installation token. - No coverage gap: merging this PR is a push to
main, which self-triggers the handler, andreleaseand tag-pushevents still fire for workflows that listen for them.