Giter Site home page Giter Site logo

Comments (4)

bigdaz avatar bigdaz commented on June 16, 2024 2

If you build from the command-line, you will execute ./gradlew build. This requires the executable bit to be set on the script.

If you are only building from the IDE, then you may never notice this being broken.

I've pushed a fix for this issue, so with the next release you'll just see a warning in your workflow run, not an error.

from actions.

bigdaz avatar bigdaz commented on June 16, 2024 1

When I clone your repository, the gradlew script isn't executable, as mentioned in the error. This means that either:

  • The IDE you used to generate the project didn't make this file executable, OR
  • The executable bit wasn't retained when you committed the project to GitHub

I think the error message is pretty clear, but the I think the action could be improved to handle a non-executable gradlew script, even if it makes no sense to have a project like that.

from actions.

yamin8000 avatar yamin8000 commented on June 16, 2024

When I clone your repository, the gradlew script isn't executable, as mentioned in the error. This means that either:

* The IDE you used to generate the project didn't make this file executable, OR

* The executable bit wasn't retained when you committed the project to GitHub

I think the error message is pretty clear, but the I think the action could be improved to handle a non-executable gradlew script, even if it makes no sense to have a project like that.

Thanks.

from actions.

yamin8000 avatar yamin8000 commented on June 16, 2024

When I clone your repository, the gradlew script isn't executable, as mentioned in the error. This means that either:

* The IDE you used to generate the project didn't make this file executable, OR

* The executable bit wasn't retained when you committed the project to GitHub

I think the error message is pretty clear, but the I think the action could be improved to handle a non-executable gradlew script, even if it makes no sense to have a project like that.

I don't know about that, however, somehow changing my workflow file to this fixed the problem. Modern Android apps need JDK 17 but I don't know why we need to grant permission for the gradlew file explicitly.

name: Dependency Submission

on: [ push ]

permissions:
  contents: write

jobs:
  dependency-submission:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout sources
        uses: actions/checkout@v4
      - name: Set up JDK 17
        uses: actions/setup-java@v4
        with:
          java-version: '17'
          distribution: 'temurin'
          cache: gradle
      - name: Grant execute permission for gradlew
        run: chmod +x gradlew
      - name: Generate and submit dependency graph
        uses: gradle/actions/dependency-submission@v3

from actions.

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.