Switched to actions/checkout@v2 (#1482)

Switch to actions/checkout@v2 which has shallow clone by default
This commit is contained in:
XhmikosR 2020-03-04 19:15:11 +02:00 committed by GitHub
parent 3be4a620df
commit 9c9935e58d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,11 +30,7 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2
# Limit clone depth to speed up build
- uses: actions/checkout@v1
with:
fetch-depth: 5
# Install Node runtime and dependencies # Install Node runtime and dependencies
- uses: actions/setup-node@v1 - uses: actions/setup-node@v1
@ -69,11 +65,7 @@ jobs:
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master' if: github.event_name != 'pull_request' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2
# Limit clone depth to speed up build
- uses: actions/checkout@v1
with:
fetch-depth: 5
# Install Python runtime and dependencies # Install Python runtime and dependencies
- uses: actions/setup-python@v1 - uses: actions/setup-python@v1
@ -118,11 +110,7 @@ jobs:
needs: build needs: build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2
# Limit clone depth to speed up build
- uses: actions/checkout@v1
with:
fetch-depth: 5
# Ensure latest build if repository is not up-to-date # Ensure latest build if repository is not up-to-date
- run: rm -rf material - run: rm -rf material