We have the issue with duplicated build names when we use the cache step.
We build an Android app on Bitrise using this pattern in package naming:
[name of app]_[build type]_[version]_[commit hash].apk
When our commit has changes in kotlin/java/xml files then the app package is building ok. When commit has changes only in Gradle files then checkout from git is run with correct commit but after building, the Apk package has the name with [commit_hash] from the previous build.
In the end, our actual build has the same name as the previous build. The new build should have a name with a new hash commit. It works if we delete the build-cache step from the workflow.
How we should solve this problem?