Skip to content

Commit 29e3d55

Browse files
committed
feat: add 'setup-java' input
1 parent a81aa7a commit 29e3d55

File tree

2 files changed

+21
-16
lines changed

2 files changed

+21
-16
lines changed

README.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -44,21 +44,22 @@ jobs:
4444

4545
## Inputs
4646

47-
| Input | Description | Required | Default |
48-
| ------------------------- | --------------------------------------- | -------- | --------------------- |
49-
| `github-token` | GitHub Token | Yes | - |
50-
| `working-directory` | Working directory for the build command | No | `.` |
51-
| `validate-gradle-wrapper` | Whether to validate the Gradle wrapper | No | `true` |
52-
| `variant` | Build variant (debug/release) | No | `debug` |
53-
| `sign` | Whether to sign the build with keystore | No | - |
54-
| `re-sign` | Re-sign the APK with new JS bundle | No | `false` |
55-
| `keystore-base64` | Base64 encoded keystore file | No | - |
56-
| `keystore-store-file` | Keystore store file name | No | - |
57-
| `keystore-store-password` | Keystore store password | No | - |
58-
| `keystore-key-alias` | Keystore key alias | No | - |
59-
| `keystore-key-password` | Keystore key password | No | - |
60-
| `rnef-build-extra-params` | Extra parameters for rnef build:android | No | - |
61-
| `comment-bot` | Whether to comment PR with build link | No | `true` |
47+
| Input | Description | Required | Default |
48+
| ------------------------- | ---------------------------------------- | -------- | ------- |
49+
| `github-token` | GitHub Token | Yes | - |
50+
| `working-directory` | Working directory for the build command | No | `.` |
51+
| `validate-gradle-wrapper` | Whether to validate the Gradle wrapper | No | `true` |
52+
| `setup-java` | Whether to run actions/setup-java action | No | `true` |
53+
| `variant` | Build variant (debug/release) | No | `debug` |
54+
| `sign` | Whether to sign the build with keystore | No | - |
55+
| `re-sign` | Re-sign the APK with new JS bundle | No | `false` |
56+
| `keystore-base64` | Base64 encoded keystore file | No | - |
57+
| `keystore-store-file` | Keystore store file name | No | - |
58+
| `keystore-store-password` | Keystore store password | No | - |
59+
| `keystore-key-alias` | Keystore key alias | No | - |
60+
| `keystore-key-password` | Keystore key password | No | - |
61+
| `rnef-build-extra-params` | Extra parameters for rnef build:android | No | - |
62+
| `comment-bot` | Whether to comment PR with build link | No | `true` |
6263

6364
## Outputs
6465

action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ inputs:
1313
description: 'Whether to validate the Gradle wrapper'
1414
required: false
1515
default: true
16+
setup-java:
17+
description: 'Whether to run actions/setup-java action'
18+
required: false
19+
default: true
1620
variant:
1721
description: 'Build variant'
1822
required: false
@@ -148,7 +152,7 @@ runs:
148152
shell: bash
149153

150154
- name: Install Java
151-
if: ${{ !env.ARTIFACT_URL }}
155+
if: ${{ inputs.setup-java == 'true' && !env.ARTIFACT_URL }}
152156
uses: actions/setup-java@v4
153157
with:
154158
java-version: 17

0 commit comments

Comments
 (0)