GithubHelp home page GithubHelp logo

sh commands not found about fastlane-action HOT 3 CLOSED

fobidlim avatar fobidlim commented on August 20, 2024
sh commands not found

from fastlane-action.

Comments (3)

maierj avatar maierj commented on August 20, 2024 1

I just published a new version 1.3.0 that includes a fix for this issue.

What happend was:
In the action i use @actions/tool-cache to find the Ruby installation path and add it to the $PATH. When asking the tool-cache for the installation path, i hardcoded the Ruby version 2.6.3 instead of specifying a version range like >=2.6. There was obviously a change in the Ruby versions that are available by default on the Runners and version 2.6.3 is not available any more.

from fastlane-action.

yvanvds avatar yvanvds commented on August 20, 2024

I got exactly the same error. It did work a few weeks ago. Something must have changed, and my workflow did not.

default_platform(:android)

platform :android do
  desc "Runs all the tests"
  lane :test do
    gradle(task: "test")
  end

  desc "Submit a new Beta Build to Crashlytics Beta"
  lane :beta do
    gradle(task: "clean assembleRelease")
    crashlytics
  
    # sh "your_script.sh"
    # You can also use other beta testing services here
  end

  desc "Deploy a new version to the Google Play"
  lane :deploybeta do
    upload_to_play_store(aab: '../build/app/outputs/bundle/release/app-release.aab', track: 'beta', release_status: 'draft') # remove release status once we're live
  end
end

from fastlane-action.

GwonHyeok avatar GwonHyeok commented on August 20, 2024

@fobidlim @yvanvds

I have a same issue

/bin/sh: 1: gem: not found

I checked the error message and it's an error because Ruby is not installed.

so now i'm added setup ruby to workflow file

- uses: actions/setup-ruby@v1

after adding setup-ruby the error was resolved.

this is my workflow file

name: CI

on:
  push:
    branches:
      - master

jobs:
  build:

    runs-on: ubuntu-latest

    steps:

      # Checkout
      - uses: actions/checkout@v1

      # Use Ruby
      - uses: actions/setup-ruby@v1

      # Setup Java
      - uses: actions/setup-java@v1
        with:
          java-version: '12.x'

      # Setup Flutter
      - uses: subosito/flutter-action@v1
        with:
          channel: 'beta'

      # Build Flutter Application
      - run: flutter pub get
      - run: flutter build appbundle --release

      # Upload Android AAB To Playstore Internal Track
      - uses: maierj/[email protected]
        env:
          SUPPLY_JSON_KEY_DATA: ${{ secrets.FASTLANE_ANDROID_JSON_KEY_DATA }}
        with:
          lane: 'deploy_internal'
          subdirectory: 'android'

from fastlane-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.