-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto-generate apk RTFace_Login/.github/workflows/build-workflow.yml should increment version number #43
Comments
The correct way to automatically increment version number is that everytime a pull request is merged to
|
@gargVader - I appreciate your prompt and informative response, especially the pointer to this for bumping the version number. However, if it runs only when a PR is merged to development, why does it need to make a commit or create a pull request? |
Ideally we should only use APKs from |
We need to test new apks before merging them into the development branch, so our travis script generated a new apk whenever anyone made a pull request, rather than wait till merging it. So should our script that uses GitHub actions. Shouldn't a pull request trigger the bump, rather than wait till the merge into the development branch, so as to bump the version whenever a new apk gets generated? Or is it important to do as part of the merge, in order to keep the version number consistent among branches? |
Yes, it is to keep the version number consistent among branches. Consider the following case.
|
https://github.com/RoboTutorLLC/RTFace_Login/blob/development/.github/workflows/build-workflow.yml ll. 31ff:
- name: Get app version name
id: get_version_name
run: echo "VERSION_NAME=$(./gradlew -q getVersionName --warning-mode=none)" >> $GITHUB_OUTPUT
# steps.get_version_name.outputs.VERSION_NAME
Just fetches version_name from gradlew
gradlew doesn't mention version, so presumably getVersionName is an Android method that magically fetches app version name
and need to call set_version_code to increment it
@gargVader - I know you only have time to advise, not to implement, but can you suggest who on the RoboTutor team is familiar with this type of witchcraft ;-_?
The text was updated successfully, but these errors were encountered: