From 5d5eaca52b76189b84d315c0f0bb20a156cef520 Mon Sep 17 00:00:00 2001 From: Salem Fenn Date: Sun, 28 Jan 2024 16:11:51 -0800 Subject: [PATCH] Fastlane setup moved back into shell script --- Gemfile | 2 +- action.yml | 6 +++--- begin-action.sh | 3 +++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index 4050d3c..d39415a 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,5 @@ source 'https://rubygems.org' -gem 'fastlane' +# gem 'fastlane' plugins_path = File.join(File.dirname(__FILE__), 'fastlane', 'Pluginfile') eval(File.read(plugins_path), binding) if File.exist?(plugins_path) \ No newline at end of file diff --git a/action.yml b/action.yml index 9dcf610..29e42d7 100644 --- a/action.yml +++ b/action.yml @@ -53,9 +53,9 @@ runs: with: ruby-version: ${{ inputs.ruby-version }} bundler-cache: true - - id: "SETUP_FASTLANE" - run: bundle install - shell: sh + # - id: "SETUP_FASTLANE" + # run: bundle install + # shell: sh - id: "SETUP_NODE" uses: actions/setup-node@v4 with: diff --git a/begin-action.sh b/begin-action.sh index 3013e1a..504c308 100755 --- a/begin-action.sh +++ b/begin-action.sh @@ -15,6 +15,9 @@ if [ diff -r -q $PWD $ACTION_PATH != 0]; then cp ${ACTION_PATH}/Gemfile ./ fi +bundle add fastlane +bundle install + if [ -n "${FASTLANE_ENV}" ]; then echo "Running fastlane with environment: ${FASTLANE_ENV}" bundle exec fastlane --env ${FASTLANE_ENV} android $BUILD_TYPE