Skip to content

Expose build-root-directory in gradle action #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions gradle/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,16 @@ inputs:
description: 'max heap to allocate to gradle'
required: true
default: '6g'
build-root-directory:
description: 'Path to the root directory of the build. Default is the root of the GitHub workspace.'
required: true
default: $GITHUB_WORKSPACE
runs:
using: "composite"
steps:
- uses: gradle/gradle-build-action@v2
with:
build-root-directory: ${{ inputs.build-root-directory }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we take this opportunity to switch to v3 of the generic action? It looks like gradle switched to a model where you set up gradle rather than call their action directly, but this one delegates to it so should be fine. We still want the common action anyway to pass build args

arguments: |
--info
--max-workers=${{ inputs.max-workers }}
Expand Down
Loading