Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@tuancoltech
Copy link
Member

@tuancoltech tuancoltech commented Jul 11, 2025

Issue Number

  • Resolves #

Purpose

  • Allow manual release Github workflow.
  • Upgrade action-gh-release to 2.3.2

Technical Details

Screenshots

Testing Instructions

Regression Tests

  • I tested my changes on Android 16 (API 36)
  • I tested my changes on Android 15 (API 35)
  • I tested my changes on Android 14 (API 34)
  • I tested my changes on Android 13 (API 33)
  • I tested my changes on Android 12L (API 32)
  • I tested my changes on Android 12 (API 31)
  • I tested my changes on Android 11 (API 30)
  • I tested my changes on Android 10 (API 29)
  • I tested my changes on Android 9 (API 28)
  • I tested my changes on Android 8.1 (API 27)
  • I tested my changes on Android 8.0 (API 26)

UI Tests

  • I tested my changes on a 6-7" screen (▯ portrait orientation)
  • I tested my changes on a 6-7" screen (▭ landscape orientation)
  • I tested my changes on a 7-8" screen (▯ portrait orientation)
  • I tested my changes on a 7-8" screen (▭ landscape orientation)
  • I tested my changes on a 9-10" screen (▯ portrait orientation)
  • I tested my changes on a 9-10" screen (▭ landscape orientation)

Content Tests

  • I tested my changes with English content (eng.elimu.ai)
  • I tested my changes with Hindi content (hin.elimu.ai)
  • I tested my changes with Tagalog content (tgl.elimu.ai)
  • I tested my changes with Thai content (tha.elimu.ai)
  • I tested my changes with Vietnamese content (vie.elimu.ai)

Summary by CodeRabbit

  • Chores
    • Enhanced release workflow to allow manual triggering.
    • Updated GitHub release action to a newer version.

@tuancoltech tuancoltech requested a review from a team as a code owner July 11, 2025 05:54
@coderabbitai
Copy link

coderabbitai bot commented Jul 11, 2025

Walkthrough

The GitHub Actions workflow for Gradle releases was updated to allow manual triggering via workflow_dispatch alongside the existing push trigger on the main branch. The GitHub release action used to upload the signed APK was upgraded from version 2.2.2 to 2.3.2. No changes were made to exported or public entities.

Changes

File Change Summary
.github/workflows/gradle-release.yml Added manual workflow trigger and upgraded GitHub release action version.

Sequence Diagram(s)

sequenceDiagram
    actor Developer
    participant GitHub Actions
    participant GitHub Release

    Developer->>GitHub Actions: Trigger workflow (push to main or manual dispatch)
    GitHub Actions->>GitHub Actions: Configure Git (set user name/email)
    GitHub Actions->>GitHub Actions: Build and sign APK
    GitHub Actions->>GitHub Release: Upload signed APK (using v2.3.2)
Loading

elimu.ai's mission is to build innovative learning software that empowers out-of-school children to teach themselves basic reading📖, writing✍🏽 and math🔢 within 6 months.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4fb28a7 and 6cc1960.

📒 Files selected for processing (1)
  • .github/workflows/gradle-release.yml (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/gradle-release.yml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
  • GitHub Check: test (29)
  • GitHub Check: test (28)
  • GitHub Check: build (windows-latest, 21)
  • GitHub Check: build (macos-latest, 17)
  • GitHub Check: build (ubuntu-latest, 21)
  • GitHub Check: build (windows-latest, 17)
  • GitHub Check: build (macos-latest, 21)
  • GitHub Check: build (ubuntu-latest, 17)
  • GitHub Check: lint

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
.github/workflows/gradle-release.yml (1)

3-7: Manual trigger is a nice addition — consider safeguarding it

workflow_dispatch lets maintainers kick off a release on demand, but without any inputs, environment, or concurrency guard, anyone with workflow permissions can publish an arbitrary tag. Add an inputs: block (e.g. expected_version) or route the job through a protected environment to reduce accidental or malicious bumps.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between fc1ed63 and 4fb28a7.

📒 Files selected for processing (1)
  • .github/workflows/gradle-release.yml (3 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
  • GitHub Check: test (29)
  • GitHub Check: test (28)
  • GitHub Check: lint
  • GitHub Check: build (macos-latest, 21)
  • GitHub Check: build (ubuntu-latest, 21)
  • GitHub Check: build (windows-latest, 21)
  • GitHub Check: build (ubuntu-latest, 17)
  • GitHub Check: build (macos-latest, 17)
  • GitHub Check: build (windows-latest, 17)
🔇 Additional comments (1)
.github/workflows/gradle-release.yml (1)

126-133: Double-check the breaking-change notes for softprops/[email protected]

The upgrade from v2.2.2 to v2.3.2 looks harmless, yet recent versions renamed some inputs. Confirm that files and tag_name are still honoured or the APK upload will fail—stalling releases and slowing elimu.ai's mission to empower out-of-school children to master reading📖, writing✍🏽, and math🔢 in 6 months.

Comment on lines 31 to 32
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Square brackets need quoting to avoid shell globbing

Unquoted github-actions[bot] is interpreted by the shell as a glob ([bot]) and will expand to matching filenames—or error under failglob/nullglob. Keep the quotes to ensure the literal value is passed to Git:

-          git config user.name github-actions[bot]
-          git config user.email 41898282+github-actions[bot]@users.noreply.github.com
+          git config user.name 'github-actions[bot]'
+          git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
🤖 Prompt for AI Agents
In .github/workflows/gradle-release.yml at lines 31 to 32, the git config
user.name and user.email values containing square brackets are not quoted,
causing shell globbing issues. Fix this by enclosing github-actions[bot] in
double quotes to prevent the shell from interpreting the brackets as a glob
pattern, ensuring the literal string is passed to git config.

@tuancoltech tuancoltech force-pushed the allow_manual_release_action branch from 4fb28a7 to 6cc1960 Compare July 11, 2025 14:32
@tuancoltech tuancoltech merged commit 6e502e0 into main Jul 11, 2025
9 checks passed
@tuancoltech tuancoltech deleted the allow_manual_release_action branch July 11, 2025 14:39
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