Browse Source

Prevent bundle run when cache hit

onevcat 6 years ago
parent
commit
379194e492
1 changed files with 2 additions and 0 deletions
  1. 2 0
      .github/workflows/build.yaml

+ 2 - 0
.github/workflows/build.yaml

@@ -12,12 +12,14 @@ jobs:
     steps:
       - uses: actions/checkout@v1
       - uses: actions/cache@v1
+        id: bundler-cache
         with:
           path: vendor/bundle
           key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
           restore-keys: |
             ${{ runner.os }}-gems-
       - name: Bundle install
+        if: steps.bundler-cache.outputs.cache-hit != 'true'
         run: |
           bundle config path vendor/bundle
           bundle install --jobs 4 --retry 3