Fix the build action when running against a tag (#40)

* Update build.yml

Change fetch-depth to 0 on the checkout action closes #39

* Update setup-java and gradle-build versions

actions/setup-java@v2 -> actions/setup-java@v4
gradle/gradle-build-action@v2 -> gradle/actions/setup-gradle@v3
This commit is contained in:
James Wolff 2024-03-12 19:42:59 -05:00 committed by GitHub
parent d28b3b6d7c
commit d85c69457d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,16 +9,16 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1000
fetch-depth: 0
fetch-tags: true
- name: Setup JDK 17
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
uses: gradle/actions/setup-gradle@v3
with:
arguments: build