Skip to content

Commit

Permalink
Fastlane version specified
Browse files Browse the repository at this point in the history
  • Loading branch information
salemlf committed Jan 29, 2024
1 parent 5d5eaca commit 27589d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ inputs:
description: "Output path of the build"
required: false
default: "output.apk"
fastlane-version:
description: "Fastlane version to use"
default: "2.219.0"
required: false
fastlane-env:
description: "env file name to pass to fastlane --env"
required: false
Expand All @@ -52,10 +56,6 @@ runs:
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ inputs.ruby-version }}
bundler-cache: true
# - id: "SETUP_FASTLANE"
# run: bundle install
# shell: sh
- id: "SETUP_NODE"
uses: actions/setup-node@v4
with:
Expand All @@ -71,6 +71,7 @@ runs:
JSON_KEY_DATA: ${{ inputs.json-key-data }}
PROJECT_PATH: ${{ inputs.project-path }}
OUTPUT_PATH: ${{ inputs.output-path }}
FASTLANE_VERSION: ${{ inputs.fastlane-version }}
FASTLANE_ENV: ${{ inputs.fastlane-env }}
ACTION_PATH: ${{ github.action_path }}
run: . ${{ github.action_path }}/begin-action.sh
Expand Down
2 changes: 1 addition & 1 deletion begin-action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if [ diff -r -q $PWD $ACTION_PATH != 0]; then
cp ${ACTION_PATH}/Gemfile ./
fi

bundle add fastlane
bundle add fastlane --version ${FASTLANE_VERSION}
bundle install

if [ -n "${FASTLANE_ENV}" ]; then
Expand Down

0 comments on commit 27589d2

Please sign in to comment.