fix: only auto-release when Android code changes - #22
Merged
Conversation
Auto Release bumps the Android versionName/versionCode, builds Play Store APKs, and cuts a GitHub Release — it's entirely Android. It triggered on every push to main, so merging an iOS-only or workflow-only change bumped the Android version and published a release (e.g. 1.11.2 from the iOS Strict Mode PR). Scope the push trigger to ZenLock-Android/** so a release only fires when Android code actually changes. workflow_dispatch stays unrestricted for manual releases, and the existing "skip chore: bump version" guard still prevents self-trigger loops. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015Qvf9BnsiAuaiSPbsZazgr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Merging the iOS Strict Mode PR (#21) triggered Auto Release, which bumped the Android version 1.11.1 → 1.11.2 and cut a Play-Store-flavored GitHub Release — for a change that touched zero Android code.
`release.yml` bumps `ZenLock-Android/app/build.gradle.kts`, builds the playstore/sms APKs, tags, and publishes a release. It's entirely Android, but its `push` trigger had no path filter, so any push to `main` (iOS code, workflow edits, docs) cut an Android release.
Fix
Scope the `push` trigger to `ZenLock-Android/**`. An Android release now fires only when Android code changes. `workflow_dispatch` stays unrestricted for manual releases, and the existing "skip chore: bump version" guard still prevents self-trigger loops.
Notes
🤖 Generated with Claude Code