Skip to content

Commit b2f6ac2

Browse files
committed
Add shell as optional input parameter
Signed-off-by: Jerome Prinet <[email protected]>
1 parent 20d23e4 commit b2f6ac2

File tree

4 files changed

+38
-16
lines changed

4 files changed

+38
-16
lines changed

.github/composite/exp1/action.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
name: Run experiment 1
2+
description: 'Run Gradle Experiment 1'
23

34
inputs:
45
repositoryUrl:
6+
description: Project repository URL
57
required: true
6-
type: string
78
branch:
9+
description: Git Branch
810
required: true
9-
type: string
1011
task:
12+
description: Gradle task
1113
required: true
12-
type: string
1314
gradleEnterpriseUrl:
15+
description: Gradle Enterprise URL
1416
required: true
15-
type: string
17+
shell:
18+
description: Caller shell (default bash)
19+
required: false
20+
default: 'bash'
1621

1722
runs:
1823
using: "composite"
@@ -21,4 +26,4 @@ runs:
2126
run: |
2227
cd gradle-enterprise-gradle-build-validation
2328
./01-validate-incremental-building.sh -r ${{ inputs.repositoryUrl }} -b ${{ inputs.branch }} -t ${{ inputs.task }} -s ${{ inputs.gradleEnterpriseUrl }}
24-
shell: bash
29+
shell: ${{ inputs.shell }}

.github/composite/exp2/action.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
name: Run experiment 2
2+
description: 'Run Gradle Experiment 2'
23

34
inputs:
45
repositoryUrl:
6+
description: Project repository URL
57
required: true
6-
type: string
78
branch:
9+
description: Git Branch
810
required: true
9-
type: string
1011
task:
12+
description: Gradle task
1113
required: true
12-
type: string
1314
gradleEnterpriseUrl:
15+
description: Gradle Enterprise URL
1416
required: true
15-
type: string
17+
shell:
18+
description: Caller shell (default bash)
19+
required: false
20+
default: 'bash'
1621

1722
runs:
1823
using: "composite"
@@ -21,4 +26,4 @@ runs:
2126
run: |
2227
cd gradle-enterprise-gradle-build-validation
2328
./02-validate-local-build-caching-same-location.sh -r ${{ inputs.repositoryUrl }} -b ${{ inputs.branch }} -t ${{ inputs.task }} -s ${{ inputs.gradleEnterpriseUrl }}
24-
shell: bash
29+
shell: ${{ inputs.shell }}

.github/composite/exp3/action.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
name: Run experiment 3
2+
description: 'Run Gradle Experiment 3'
23

34
inputs:
45
repositoryUrl:
6+
description: Project repository URL
57
required: true
6-
type: string
78
branch:
9+
description: Git Branch
810
required: true
9-
type: string
1011
task:
12+
description: Gradle task
1113
required: true
12-
type: string
1314
gradleEnterpriseUrl:
15+
description: Gradle Enterprise URL
1416
required: true
15-
type: string
17+
shell:
18+
description: Caller shell (default bash)
19+
required: false
20+
default: 'bash'
1621

1722
runs:
1823
using: "composite"
@@ -21,4 +26,4 @@ runs:
2126
run: |
2227
cd gradle-enterprise-gradle-build-validation
2328
./03-validate-local-build-caching-different-locations.sh -r ${{ inputs.repositoryUrl }} -b ${{ inputs.branch }} -t ${{ inputs.task }} -s ${{ inputs.gradleEnterpriseUrl }}
24-
shell: bash
29+
shell: ${{ inputs.shell }}

.github/composite/getLatest/action.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
name: Get latest release
2+
description: 'Install Scripts latest release'
3+
4+
inputs:
5+
shell:
6+
description: Caller shell (default bash)
7+
required: false
8+
default: 'bash'
29

310
runs:
411
using: "composite"
@@ -8,4 +15,4 @@ runs:
815
downloadUrl=$(curl -s https://api.github.com/repos/gradle/gradle-enterprise-build-validation-scripts/releases/latest | jq -c '.assets[] | select(.content_type == "application/zip")' | jq -r .browser_download_url | grep -v maven)
916
curl -s -L -o gradle-enterprise-gradle-build-validation.zip $downloadUrl
1017
unzip -q -o gradle-enterprise-gradle-build-validation.zip
11-
shell: bash
18+
shell: ${{ inputs.shell }}

0 commit comments

Comments
 (0)