2
0
Yuki Takei 4 жил өмнө
parent
commit
c167606fef

+ 2 - 4
.github/workflows/ci.yml

@@ -214,9 +214,8 @@ jobs:
     - name: Get Date
     - name: Get Date
       id: get-date
       id: get-date
       run: |
       run: |
-        echo "::set-output name=dateYmd::$(/bin/date -u "+%Y%m%d")"
+        echo "::set-output name=dateYmdHM::$(/bin/date -u "+%Y%m%d%H%M")"
         echo "::set-output name=dateYm::$(/bin/date -u "+%Y%m")"
         echo "::set-output name=dateYm::$(/bin/date -u "+%Y%m")"
-        echo "::set-output name=dateY::$(/bin/date -u "+%Y")"
 
 
     - name: Cache/Restore node_modules for build
     - name: Cache/Restore node_modules for build
       id: cache-dependencies
       id: cache-dependencies
@@ -224,12 +223,11 @@ jobs:
       with:
       with:
         path: |
         path: |
           **/node_modules
           **/node_modules
-        key: node_modules-build-prod-${{ runner.OS }}-node${{ matrix.node-version }}-${{ steps.get-date.outputs.dateYmd }}
+        key: node_modules-build-prod-${{ runner.OS }}-node${{ matrix.node-version }}-${{ steps.get-date.outputs.dateYmdHM }}
         restore-keys: |
         restore-keys: |
           node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}
           node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}
           node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-
           node_modules-${{ runner.OS }}-node${{ matrix.node-version }}-
           node_modules-build-prod-${{ runner.OS }}-node${{ matrix.node-version }}-${{ steps.get-date.outputs.dateYm }}
           node_modules-build-prod-${{ runner.OS }}-node${{ matrix.node-version }}-${{ steps.get-date.outputs.dateYm }}
-          node_modules-build-prod-${{ runner.OS }}-node${{ matrix.node-version }}-${{ steps.get-date.outputs.dateY }}
           node_modules-build-prod-${{ runner.OS }}-node${{ matrix.node-version }}-
           node_modules-build-prod-${{ runner.OS }}-node${{ matrix.node-version }}-
 
 
     - name: Remove unnecessary packages
     - name: Remove unnecessary packages