Ensure actions/cache paths match for restoring (#29275)
* Ensure actions/cache paths match for restoring * add docs check
This commit is contained in:
parent
2839479442
commit
efa95fc917
1 changed files with 10 additions and 6 deletions
16
.github/workflows/build_test_deploy.yml
vendored
16
.github/workflows/build_test_deploy.yml
vendored
|
@ -75,23 +75,27 @@ jobs:
|
||||||
env:
|
env:
|
||||||
NEXT_TELEMETRY_DISABLED: 1
|
NEXT_TELEMETRY_DISABLED: 1
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
|
||||||
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
|
|
||||||
|
|
||||||
# https://github.com/actions/virtual-environments/issues/1187
|
# https://github.com/actions/virtual-environments/issues/1187
|
||||||
- name: tune linux network
|
- name: tune linux network
|
||||||
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
|
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
|
||||||
run: sudo ethtool -K eth0 tx off rx off
|
run: sudo ethtool -K eth0 tx off rx off
|
||||||
|
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
|
||||||
|
|
||||||
|
- run: mv .git .git-bak
|
||||||
|
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
|
||||||
|
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
|
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
|
||||||
id: restore-build
|
id: restore-build
|
||||||
with:
|
with:
|
||||||
path: |
|
path: ./*
|
||||||
./*
|
|
||||||
!./.git
|
|
||||||
key: ${{ github.sha }}
|
key: ${{ github.sha }}
|
||||||
|
|
||||||
|
- run: rm -rf .git && mv .git-bak .git
|
||||||
|
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
|
||||||
|
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v2
|
||||||
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
|
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue