[build] Use fetch-depth: 0 to get all history (#2812)

This commit is contained in:
Austin Shalit
2020-10-25 22:56:52 -04:00
committed by GitHub
parent 34b91318f4
commit 0a723a50dc

View File

@@ -25,8 +25,8 @@ jobs:
container: ${{ matrix.container }}
steps:
- uses: actions/checkout@v2
- name: Fetch all history and metadata
run: git fetch --prune --unshallow --tags
with:
fetch-depth: 0
- name: Build with Gradle
run: ./gradlew build -PbuildServer ${{ matrix.build-options }}
- uses: actions/upload-artifact@v2
@@ -52,8 +52,8 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Fetch all history and metadata
run: git fetch --prune --unshallow --tags
with:
fetch-depth: 0
- uses: actions/setup-java@v1
with:
java-version: 11
@@ -89,8 +89,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Fetch all history and metadata
run: git fetch --prune --unshallow --tags
with:
fetch-depth: 0
- uses: actions/setup-java@v1
with:
java-version: 13