Skip to content

Commit 22a550b

Browse files
authored
fastlane-version input (#28)
* feat: add 'fastlane-version' input --------- Co-authored-by: Antonio Barile <[email protected]>
1 parent d74003c commit 22a550b

File tree

5 files changed

+26
-11
lines changed

5 files changed

+26
-11
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
# Change Log
22

3+
## [1.5.0] - 2023-26-05
4+
- Add `fastlane-version` input.
5+
6+
## [1.4.0] - 2023-18-04
7+
- Add `release-track` and `release-status` inputs.
8+
39
## [1.3.4] - 2023-08-02
410

5-
- Fix build.sh input checks when uploading to Play Store
11+
- Fix `build.sh` input checks when uploading to Play Store.
612

713
## [1.3.3] - 2023-31-01
814

Gemfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
source 'https://rubygems.org'
22

3-
gem "fastlane"
4-
53
plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile')
6-
eval(File.read(plugins_path), binding) if File.exist?(plugins_path)
4+
eval(File.read(plugins_path), binding) if File.exist?(plugins_path)

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Tested with Ionic, React Native and native android projects.
3636

3737
### `project-path`
3838

39-
**Required** android folder (where `gradlew` is)
39+
**(Required)** Android folder (where `gradlew` is)
4040

4141
### `output-path`
4242

@@ -48,11 +48,15 @@ Name of the gradle task to run. Default `"assembleDebug"`.
4848

4949
### `ruby-version`
5050

51-
Ruby version to be used.
51+
Ruby version to be used. Default `"head"`.
5252

5353
### `bundler-version`
5454

55-
Bundler version to be used.
55+
Bundler version to be used. Default `"2.3"`.
56+
57+
### `fastlane-version`
58+
59+
Fastlane version to be used. If not specified, the default value will be used.
5660

5761
### `fastlane-env`
5862

@@ -69,7 +73,7 @@ Status of the uploaded release. Default `"draft"`.
6973
## Example usage
7074

7175
```yaml
72-
- uses: sparkfabrik/android-build-action@v1.3.4
76+
- uses: sparkfabrik/android-build-action@v1.5.0
7377
with:
7478
project-path: android
7579
output-path: my-app.apk

action.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,17 @@ inputs:
6060
description: "Name of the env file name to pass to fastlane --env"
6161
required: false
6262
ruby-version:
63-
description: "Specify the ruby version you wish to use"
63+
description: "Specify the Ruby version you wish to use"
6464
required: false
6565
default: "head"
6666
bundler-version:
67-
description: "Specify the bundler version you wish to use"
67+
description: "Specify the Bundler version you wish to use"
6868
default: "2.3"
6969
required: false
70+
fastlane-version:
71+
description: "Specify the Fastlane version you wish to use"
72+
default: "2.213.0"
73+
required: false
7074
release-track:
7175
description: "Release track to target"
7276
default: "internal"
@@ -103,6 +107,7 @@ runs:
103107
BROWSERSTACK_UPLOAD: ${{ inputs.browserstack-upload }}
104108
BROWSERSTACK_USERNAME: ${{ inputs.browserstack-username }}
105109
BROWSERSTACK_ACCESS_KEY: ${{ inputs.browserstack-access-key }}
110+
FASTLANE_VERSION: ${{ inputs.fastlane-version }}
106111
FASTLANE_ENV: ${{ inputs.fastlane-env }}
107112
RELEASE_TRACK: ${{ inputs.release-track }}
108113
RELEASE_STATUS: ${{ inputs.release-status }}

build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ if [ -n "${KEYSTORE_CONTENT}" ]; then
3333
fi
3434

3535
cp -r ${ACTION_PATH}/fastlane ./
36-
cp -r ${ACTION_PATH}/Gemfile ./
36+
cp ${ACTION_PATH}/Gemfile ./
37+
38+
bundle add fastlane --version ${FASTLANE_VERSION}
3739

3840
bundle install
3941

0 commit comments

Comments
 (0)