devops: fetch only last 10 Git commits in Actions checkout v2
@@ -16,7 +16,7 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
- fetch-depth: '0'
+ fetch-depth: '10'
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
@@ -35,6 +35,8 @@ jobs:
mongodb: ["4.0", "4.2"]
steps:
- uses: actions/checkout@v2
+ with:
+ fetch-depth: '10'
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
with:
@@ -49,6 +51,8 @@ jobs:
needs: test
steps:
- uses: actions/checkout@v2
+ with:
+ fetch-depth: '10'
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
@@ -91,6 +95,8 @@ jobs:
needs: build
steps:
- uses: actions/checkout@v2
+ with:
+ fetch-depth: '10'
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
@@ -123,6 +129,8 @@ jobs:
needs: test
steps:
- uses: actions/checkout@v2
+ with:
+ fetch-depth: '10'
- name: Build Python package for PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_TWINE_USER }}
