Unverified Commit efa95fc9 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Ensure actions/cache paths match for restoring (#29275)

* Ensure actions/cache paths match for restoring

* add docs check
parent 28394794
...@@ -75,23 +75,27 @@ jobs: ...@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment