Skip to content

Commit

Permalink
Use working-directory for gradle wrapper validation.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock committed Dec 7, 2021
1 parent 4a9d15c commit 4412234
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/wrapper.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
name: Validate Gradle Wrapper
on: [pull_request]
defaults:
run:
shell: bash
working-directory: gradle/wrapper
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 11
distribution: adopt
- name: Check Gradle Wrapper
run: |
cd gradle/wrapper
GRADLE_WRAPPER_VERSION=`basename $(cat gradle-wrapper.properties | grep distributionUrl) | sed 's/gradle-//g;s/-all.zip//g'`
GRADLE_WRAPPER_HASH_REMOTE="https://services.gradle.org/distributions/gradle-${GRADLE_WRAPPER_VERSION}-wrapper.jar.sha256"
Expand Down

0 comments on commit 4412234

Please sign in to comment.