Skip to content

Commit b122f87

Browse files
BUILD-9760 working-directory input for config-gradle
1 parent 657a0c7 commit b122f87

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,7 @@ steps:
485485

486486
| Input | Description | Default |
487487
|---------------------------|-----------------------------------------------------------------------------|----------------------------------------------------------------------|
488+
| `working-directory` | Relative path under github.workspace to execute the build in | `.` |
488489
| `artifactory-reader-role` | Suffix for the Artifactory reader role in Vault | `private-reader` for private repos, `public-reader` for public repos |
489490
| `use-develocity` | Whether to use Develocity for build tracking | `false` |
490491
| `develocity-url` | URL for Develocity | `https://develocity.sonar.build/` |

build-gradle/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ runs:
147147
id: config-gradle
148148
with:
149149
host-actions-root: ${{ steps.set-path.outputs.host_actions_root }}
150+
working-directory: ${{ inputs.working-directory }}
150151
artifactory-reader-role: ${{ inputs.artifactory-reader-role }}
151152
use-develocity: ${{ inputs.use-develocity }}
152153
develocity-url: ${{ inputs.develocity-url }}

config-gradle/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
name: Configure Gradle
33
description: GitHub Action to configure Gradle build environment with build number, authentication, and default settings
44
inputs:
5+
working-directory:
6+
description: Relative path under github.workspace to execute the build in
7+
default: .
58
artifactory-reader-role:
69
description: Suffix for the Artifactory reader role in Vault. Defaults to `private-reader` for private repositories,
710
and `public-reader` for public repositories.
@@ -186,6 +189,7 @@ runs:
186189
id: set-version
187190
if: steps.config-gradle-completed.outputs.skip != 'true'
188191
shell: bash
192+
working-directory: ${{ inputs.working-directory }}
189193
run: ${GITHUB_ACTION_PATH}/set_gradle_project_version.sh
190194

191195
- name: Deactivate UseContainerSupport on github-ubuntu-* runners

0 commit comments

Comments
 (0)