Skip to content

feat: add 'setup-java' input #8

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

Merged
merged 1 commit into from
Jul 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 16 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,21 +44,22 @@ jobs:

## Inputs

| Input | Description | Required | Default |
| ------------------------- | --------------------------------------- | -------- | --------------------- |
| `github-token` | GitHub Token | Yes | - |
| `working-directory` | Working directory for the build command | No | `.` |
| `validate-gradle-wrapper` | Whether to validate the Gradle wrapper | No | `true` |
| `variant` | Build variant (debug/release) | No | `debug` |
| `sign` | Whether to sign the build with keystore | No | - |
| `re-sign` | Re-sign the APK with new JS bundle | No | `false` |
| `keystore-base64` | Base64 encoded keystore file | No | - |
| `keystore-store-file` | Keystore store file name | No | - |
| `keystore-store-password` | Keystore store password | No | - |
| `keystore-key-alias` | Keystore key alias | No | - |
| `keystore-key-password` | Keystore key password | No | - |
| `rnef-build-extra-params` | Extra parameters for rnef build:android | No | - |
| `comment-bot` | Whether to comment PR with build link | No | `true` |
| Input | Description | Required | Default |
| ------------------------- | ---------------------------------------- | -------- | ------- |
| `github-token` | GitHub Token | Yes | - |
| `working-directory` | Working directory for the build command | No | `.` |
| `validate-gradle-wrapper` | Whether to validate the Gradle wrapper | No | `true` |
| `setup-java` | Whether to run actions/setup-java action | No | `true` |
| `variant` | Build variant (debug/release) | No | `debug` |
| `sign` | Whether to sign the build with keystore | No | - |
| `re-sign` | Re-sign the APK with new JS bundle | No | `false` |
| `keystore-base64` | Base64 encoded keystore file | No | - |
| `keystore-store-file` | Keystore store file name | No | - |
| `keystore-store-password` | Keystore store password | No | - |
| `keystore-key-alias` | Keystore key alias | No | - |
| `keystore-key-password` | Keystore key password | No | - |
| `rnef-build-extra-params` | Extra parameters for rnef build:android | No | - |
| `comment-bot` | Whether to comment PR with build link | No | `true` |

## Outputs

Expand Down
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ inputs:
description: 'Whether to validate the Gradle wrapper'
required: false
default: true
setup-java:
description: 'Whether to run actions/setup-java action'
required: false
default: true
variant:
description: 'Build variant'
required: false
Expand Down Expand Up @@ -148,7 +152,7 @@ runs:
shell: bash

- name: Install Java
if: ${{ !env.ARTIFACT_URL }}
if: ${{ inputs.setup-java == 'true' && !env.ARTIFACT_URL }}
uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
with:
java-version: 17
Expand Down