Skip to content

Commit 83b74f0

Browse files
committed
Add step to download gradle dynamically.
1 parent 43677d7 commit 83b74f0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/pr_iac_lint.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ jobs:
2828
with:
2929
distribution: 'corretto'
3030
java-version: 11
31+
- name: Build Gradle Setup
32+
if: ${{ matrix.java == '8' }} # Gradle example can only be built on Java 8
33+
working-directory: examples/powertools-examples-core/gradle
34+
run: |
35+
curl -L -o gradle/wrapper/gradle.zip https:$(cat gradle/wrapper/gradle-wrapper.properties | grep distributionUrl | cut -d ':' -f 2)
36+
unzip gradle/wrapper/gradle.zip -d gradle/wrapper/gradle
37+
./gradle/wrapper/gradle/gradle-8.2.1/bin/gradle wrapper
3138
- name: Build Project
3239
working-directory: .
3340
run: |
@@ -53,4 +60,4 @@ jobs:
5360
run: |
5461
tflint --version
5562
tflint --init
56-
tflint -f compact
63+
tflint -f compact

0 commit comments

Comments
 (0)