From 934e383e86d70e44b8d1f91d63d33a02931ef407 Mon Sep 17 00:00:00 2001 From: Anatoliy Poloz Date: Wed, 13 Dec 2023 13:50:15 +0300 Subject: [PATCH] vendor cache added --- action.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/action.yml b/action.yml index 9f0aadb..8743fd1 100644 --- a/action.yml +++ b/action.yml @@ -28,7 +28,15 @@ runs: env: GITHUB_TOKEN: ${{ secrets.GHTKN }} + - name: Cache Vendor + id: cache-vendor + uses: actions/cache@v3 + with: + path: vendor + key: ${{ runner.os }}-vendor-${{ hashFiles('**/composer.lock') }} + - name: Install Dependencies + if: steps.cache-vendor.outputs.cache-hit != 'true' # Skip if cache hit run: | composer install --no-progress --prefer-dist --optimize-autoloader shell: bash