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

Make CI build cache key more specific (#32059)

parent a016713c
...@@ -62,7 +62,7 @@ jobs: ...@@ -62,7 +62,7 @@ jobs:
id: cache-build id: cache-build
with: with:
path: ./* path: ./*
key: ${{ github.sha }} key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }}
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
...@@ -78,7 +78,7 @@ jobs: ...@@ -78,7 +78,7 @@ jobs:
id: restore-build id: restore-build
with: with:
path: ./* path: ./*
key: ${{ github.sha }} key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }}
- run: ./scripts/check-manifests.js - run: ./scripts/check-manifests.js
- run: yarn lint - run: yarn lint
...@@ -111,7 +111,7 @@ jobs: ...@@ -111,7 +111,7 @@ jobs:
id: restore-build id: restore-build
with: with:
path: ./* path: ./*
key: ${{ github.sha }} key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }}
- run: rm -rf .git && mv .git-bak .git - run: rm -rf .git && mv .git-bak .git
if: ${{needs.build.outputs.docsChange != 'docs only change'}} if: ${{needs.build.outputs.docsChange != 'docs only change'}}
...@@ -144,7 +144,7 @@ jobs: ...@@ -144,7 +144,7 @@ jobs:
id: restore-build id: restore-build
with: with:
path: ./* path: ./*
key: ${{ github.sha }} key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }}
- 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'}}
...@@ -180,7 +180,7 @@ jobs: ...@@ -180,7 +180,7 @@ jobs:
id: restore-build id: restore-build
with: with:
path: ./* path: ./*
key: ${{ github.sha }} key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }}
- 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'}}
...@@ -234,7 +234,7 @@ jobs: ...@@ -234,7 +234,7 @@ jobs:
id: restore-build id: restore-build
with: with:
path: ./* path: ./*
key: ${{ github.sha }} key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }}
- 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'}}
...@@ -283,7 +283,7 @@ jobs: ...@@ -283,7 +283,7 @@ jobs:
id: restore-build id: restore-build
with: with:
path: ./* path: ./*
key: ${{ github.sha }} key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }}
- 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'}}
...@@ -327,7 +327,7 @@ jobs: ...@@ -327,7 +327,7 @@ jobs:
id: restore-build id: restore-build
with: with:
path: ./* path: ./*
key: ${{ github.sha }} key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }}
- 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'}}
...@@ -359,7 +359,7 @@ jobs: ...@@ -359,7 +359,7 @@ jobs:
id: restore-build id: restore-build
with: with:
path: ./* path: ./*
key: ${{ github.sha }} key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }}
- 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'}}
...@@ -407,7 +407,7 @@ jobs: ...@@ -407,7 +407,7 @@ jobs:
id: restore-build id: restore-build
with: with:
path: ./* path: ./*
key: ${{ github.sha }} key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }}
- 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:
...@@ -445,7 +445,7 @@ jobs: ...@@ -445,7 +445,7 @@ jobs:
id: restore-build id: restore-build
with: with:
path: ./* path: ./*
key: ${{ github.sha }} key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }}
- 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'}}
...@@ -489,7 +489,7 @@ jobs: ...@@ -489,7 +489,7 @@ jobs:
id: restore-build id: restore-build
with: with:
path: ./* path: ./*
key: ${{ github.sha }} key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }}
- 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'}}
...@@ -522,7 +522,7 @@ jobs: ...@@ -522,7 +522,7 @@ jobs:
id: restore-build id: restore-build
with: with:
path: ./* path: ./*
key: ${{ github.sha }} key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }}
- 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:
...@@ -565,7 +565,7 @@ jobs: ...@@ -565,7 +565,7 @@ jobs:
id: restore-build id: restore-build
with: with:
path: ./* path: ./*
key: ${{ github.sha }} key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }}
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2
with: with:
...@@ -596,7 +596,7 @@ jobs: ...@@ -596,7 +596,7 @@ jobs:
id: restore-build id: restore-build
with: with:
path: ./* path: ./*
key: ${{ github.sha }} key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }}
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v2
with: with:
...@@ -1217,7 +1217,7 @@ jobs: ...@@ -1217,7 +1217,7 @@ jobs:
id: restore-build id: restore-build
with: with:
path: ./* path: ./*
key: ${{ github.sha }} key: ${{ github.sha }}-${{ github.run_number }}-${{ github.run_attempt }}
- name: Setup node - name: Setup node
uses: actions/setup-node@v2 uses: actions/setup-node@v2
......
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