gradle / gradle-build-action

Execute your Gradle build and trigger dependency submission
https://github.com/marketplace/actions/gradle-build-action
MIT License
671 stars 97 forks source link

working-directory not honoured #1062

Closed davidmoten closed 7 months ago

davidmoten commented 7 months ago

My team had to stop using gradle-build-action because working-directory not honoured. We've stopped using it because of this issue but I thought I'd let you know. cc @TristanSpeakEasy

jobs:
  java-publish:
    runs-on: ubuntu-latest
    defaults:
      run:
        working-directory: ./app
    steps:
     ...
      - name: Publish package
        uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
        with:
          arguments: publish
          cache: "gradle"
bigdaz commented 7 months ago

Your best bet is to use the action as recommended in the README, to setup Gradle only. Then you can add a separate step to execute Gradle. The arguments parameter is deprecated as of v3 of the action.

In fact, you can switch to the new setup-gradle action, which will replace gradle-build-action.