Skip to content

Commit 905a72c

Browse files
committed
Add project directory variable
Signed-off-by: Jerome Prinet <[email protected]>
1 parent 02ebe59 commit 905a72c

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

.github/composite/exp1/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ inputs:
1111
task:
1212
description: Gradle task
1313
required: true
14+
projectDir:
15+
description: Project directory
16+
required: false
17+
default: .
1418
gradleEnterpriseUrl:
1519
description: Gradle Enterprise URL
1620
required: true
@@ -21,5 +25,5 @@ runs:
2125
- name: Run Gradle Experiment 1
2226
run: |
2327
cd gradle-enterprise-gradle-build-validation
24-
./01-validate-incremental-building.sh -r ${{ inputs.repositoryUrl }} -b ${{ inputs.branch }} -t ${{ inputs.task }} -s ${{ inputs.gradleEnterpriseUrl }}
28+
./01-validate-incremental-building.sh -r ${{ inputs.repositoryUrl }} -b ${{ inputs.branch }} -t ${{ inputs.task }} -p ${{ inputs.projectDir }} -s ${{ inputs.gradleEnterpriseUrl }}
2529
shell: bash

.github/composite/exp2/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ inputs:
1111
task:
1212
description: Gradle task
1313
required: true
14+
projectDir:
15+
description: Project directory
16+
required: false
17+
default: .
1418
gradleEnterpriseUrl:
1519
description: Gradle Enterprise URL
1620
required: true
@@ -21,5 +25,5 @@ runs:
2125
- name: Run Gradle Experiment 2
2226
run: |
2327
cd gradle-enterprise-gradle-build-validation
24-
./02-validate-local-build-caching-same-location.sh -r ${{ inputs.repositoryUrl }} -b ${{ inputs.branch }} -t ${{ inputs.task }} -s ${{ inputs.gradleEnterpriseUrl }}
28+
./02-validate-local-build-caching-same-location.sh -r ${{ inputs.repositoryUrl }} -b ${{ inputs.branch }} -t ${{ inputs.task }} -p ${{ inputs.projectDir }} -s ${{ inputs.gradleEnterpriseUrl }}
2529
shell: bash

.github/composite/exp3/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ inputs:
1111
task:
1212
description: Gradle task
1313
required: true
14+
projectDir:
15+
description: Project directory
16+
required: false
17+
default: .
1418
gradleEnterpriseUrl:
1519
description: Gradle Enterprise URL
1620
required: true
@@ -21,5 +25,5 @@ runs:
2125
- name: Run Gradle Experiment 3
2226
run: |
2327
cd gradle-enterprise-gradle-build-validation
24-
./03-validate-local-build-caching-different-locations.sh -r ${{ inputs.repositoryUrl }} -b ${{ inputs.branch }} -t ${{ inputs.task }} -s ${{ inputs.gradleEnterpriseUrl }}
28+
./03-validate-local-build-caching-different-locations.sh -r ${{ inputs.repositoryUrl }} -b ${{ inputs.branch }} -t ${{ inputs.task }} -p ${{ inputs.projectDir }} -s ${{ inputs.gradleEnterpriseUrl }}
2529
shell: bash

0 commit comments

Comments
 (0)