mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Switched to actions/checkout@v2 (#1482)
Switch to actions/checkout@v2 which has shallow clone by default
This commit is contained in:
parent
3be4a620df
commit
9c9935e58d
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user