Skip to content

[BRE-769] Add GitHub Actions workflow for publishing mobile releases #401

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

michalchecinski
Copy link
Contributor

🎟️ Tracking

https://bitwarden.atlassian.net/browse/BRE-769

📔 Objective

Add GitHub Actions workflow for publishing mobile releases. Yhis action will be used in iOS and Android repos:

📸 Screenshots

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

Copy link

github-actions bot commented May 30, 2025

Logo
Checkmarx One – Scan Summary & Details9e93666f-c393-4688-9b45-927806b33ce2

Great job, no security vulnerabilities found in this Pull Request

STORE_VERSION_NUMBER: ${{ env.STORE_VERSION_NUMBER }}
run: |
if [ "$LATEST_DRAFT_VERSION" == "$STORE_VERSION_NAME ($STORE_VERSION_NUMBER)" ]; then
echo "Version $LATEST_DRAFT_VERSION is already released on Google Play Store"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⛏️ Reviewing this thinking ahead for iOS and noticed the reference to Google Play Store.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, replaced the play store mentions.

STORE_VERSION_NAME: ${{ env.STORE_VERSION_NAME }}
STORE_VERSION_NUMBER: ${{ env.STORE_VERSION_NUMBER }}
run: |
if [ "$LATEST_DRAFT_VERSION" == "$STORE_VERSION_NAME ($STORE_VERSION_NUMBER)" ]; then
Copy link
Member

@vvolkgang vvolkgang Jun 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 Will be easier to maintain this long term if we compare individual values directly. That would also help us handle the Apple / Google restrictions by checking if version number matches first and then only checking Version Name if it's ios.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I splitted it completely. Let me know if that works for you @vvolkgang :)

Copy link

sonarqubecloud bot commented Jun 6, 2025

@michalchecinski michalchecinski requested a review from vvolkgang June 9, 2025 10:46
STORE_VERSION_NUMBER: ${{ steps.get_store_versions.outputs.store_version_number }}
run: |
if [ "${{ inputs.project_type }}" == "ios" ]; then
if [ "$LATEST_DRAFT_VERSION_NAME" == "$STORE_VERSION_NUMBER" ] && [ "$LATEST_DRAFT_VERSION_NUMBER" == "$STORE_VERSION_NUMBER" ]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if [ "$LATEST_DRAFT_VERSION_NAME" == "$STORE_VERSION_NUMBER" ] && [ "$LATEST_DRAFT_VERSION_NUMBER" == "$STORE_VERSION_NUMBER" ]; then
if [ "$LATEST_DRAFT_VERSION_NAME" == "$STORE_VERSION_NAME" ] && [ "$LATEST_DRAFT_VERSION_NUMBER" == "$STORE_VERSION_NUMBER" ]; then


echo "Previous run processed: $previous_release_tag (changed from: $previous_initial_state to: $previous_changed_to)"
else
echo "::error:: No valid release-info.json found in previous artifact"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Run summary makes it look like it silently failed because of this output, we could transition this to a ::warning:: instead

Suggested change
echo "::error:: No valid release-info.json found in previous artifact"
echo "::warning::No valid release-info.json found in previous artifact"

Copy link
Member

@vvolkgang vvolkgang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! :shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants