Browse Source

ref: upgrade actions/cache to v3.0.7 (#37805)

this adds a 1-hour timeout on cache rather than hanging indefinitely
anthony sottile 2 years ago
parent
commit
c57900b1a4

+ 2 - 2
.github/actions/setup-volta/action.yml

@@ -10,7 +10,7 @@ runs:
 
     - name: cache volta+node+yarn
       id: cache
-      uses: actions/cache@0865c47f36e68161719c5b124609996bb5c40129  # v3
+      uses: actions/cache@9df7d7c016256c51d661e5d26a8632ccd0581680  # v3.0.7
       with:
         path: ${{ steps.vars.outputs.volta-dir }}
         key: ${{ steps.vars.outputs.cache-key }}
@@ -26,7 +26,7 @@ runs:
       run: python3 -uS ${{ github.action_path }}/bin/setup-volta yarn-cache-dir
 
     - name: cache yarn
-      uses: actions/cache@0865c47f36e68161719c5b124609996bb5c40129  # v3
+      uses: actions/cache@9df7d7c016256c51d661e5d26a8632ccd0581680  # v3.0.7
       with:
         path: ${{ steps.yarn.outputs.cache-dir }}
         key: ${{ steps.vars.outputs.cache-key }}-${{ hashFiles('**/yarn.lock') }}

+ 2 - 2
.github/workflows/acceptance.yml

@@ -133,7 +133,7 @@ jobs:
         run: echo "::set-output name=webpack-path::.webpack_cache"
 
       - name: webpack cache
-        uses: actions/cache@0865c47f36e68161719c5b124609996bb5c40129  # v3
+        uses: actions/cache@9df7d7c016256c51d661e5d26a8632ccd0581680  # v3.0.7
         with:
           path: ${{ steps.config.outputs.webpack-path }}
           key: ${{ runner.os }}-v2-webpack-cache-${{ hashFiles('webpack.config.ts') }}
@@ -211,7 +211,7 @@ jobs:
           chartcuterie: true
 
       - name: yarn cache
-        uses: actions/cache@0865c47f36e68161719c5b124609996bb5c40129  # v3
+        uses: actions/cache@9df7d7c016256c51d661e5d26a8632ccd0581680  # v3.0.7
         with:
           path: ${{ steps.setup.outputs.yarn-cache-dir }}
           key: ${{ runner.os }}-v2-yarn-${{ hashFiles('yarn.lock', 'api-docs/yarn.lock') }}

+ 1 - 1
.github/workflows/backend.yml

@@ -243,7 +243,7 @@ jobs:
           cache: pip
           cache-dependency-path: requirements-dev-only-frozen.txt
 
-      - uses: actions/cache@0865c47f36e68161719c5b124609996bb5c40129  # v3
+      - uses: actions/cache@9df7d7c016256c51d661e5d26a8632ccd0581680  # v3.0.7
         with:
           path: ~/.cache/pre-commit
           key: cache-epoch-1|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}