Skip to content

Commit 53c464f

Browse files
authored
Merge pull request #26 from luke-rogers/master
feat: add inputs for `release-track` and `release-status`
2 parents 3fca63a + a9f31c7 commit 53c464f

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ Bundler version to be used.
5454

5555
Specify the env that fastlane should load.
5656

57+
### `release-track`
58+
59+
Release track to target. Default `"internal"`.
60+
61+
### `release-status`
62+
63+
Status of the uploaded release. Default `"draft"`.
64+
5765
## Example usage
5866

5967
```yaml

action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ inputs:
6767
description: "Specify the bundler version you wish to use"
6868
default: "2.3"
6969
required: false
70+
release-track:
71+
description: "Release track to target"
72+
default: "internal"
73+
required: false
74+
release-status:
75+
description: "Status of the release"
76+
default: "draft"
77+
required: false
7078
runs:
7179
using: "composite"
7280
steps:
@@ -96,6 +104,8 @@ runs:
96104
BROWSERSTACK_USERNAME: ${{ inputs.browserstack-username }}
97105
BROWSERSTACK_ACCESS_KEY: ${{ inputs.browserstack-access-key }}
98106
FASTLANE_ENV: ${{ inputs.fastlane-env }}
107+
RELEASE_TRACK: ${{ inputs.release-track }}
108+
RELEASE_STATUS: ${{ inputs.release-status }}
99109
ACTION_PATH: ${{ github.action_path }}
100110
run: . ${{ github.action_path }}/build.sh
101111
shell: sh

fastlane/Fastfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ platform :android do
2828
upload_to_play_store(
2929
apk: ENV["OUTPUT_PATH"],
3030
package_name: ENV["ANDROID_PACKAGE_NAME"],
31-
release_status: "draft",
32-
track: "internal",
31+
release_status: ENV["RELEASE_STATUS"],
32+
track: ENV["RELEASE_TRACK"],
3333
json_key_data: ENV["PLAY_STORE_JSON_KEY_DATA"],
3434
)
3535
end
@@ -40,7 +40,7 @@ platform :android do
4040
if ENV['INCREMENT_BUILD_NUMBER'] == 'true'
4141
previous_build_number = google_play_track_version_codes(
4242
package_name: ENV["PACKAGE_NAME"],
43-
track: "internal",
43+
track: ENV["RELEASE_TRACK"],
4444
json_key_data: ENV["PLAY_STORE_JSON_KEY_DATA"],
4545
)[0]
4646

@@ -82,8 +82,8 @@ platform :android do
8282
upload_to_play_store(
8383
aab: ENV["OUTPUT_PATH"],
8484
package_name: ENV["PACKAGE_NAME"],
85-
release_status: "draft",
86-
track: "internal",
85+
release_status: ENV["RELEASE_STATUS"],
86+
track: ENV["RELEASE_TRACK"],
8787
json_key_data: ENV["PLAY_STORE_JSON_KEY_DATA"],
8888
)
8989
end

0 commit comments

Comments
 (0)