From 8015c6cc8814410e5409d43d31dcec54b71c15c3 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Fri, 16 Feb 2024 23:10:18 +0100 Subject: [PATCH] Skip extensions cache if there are no extensions to install --- .github/actions/ci-setup/action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/actions/ci-setup/action.yml b/.github/actions/ci-setup/action.yml index 9407d6d5..227578f5 100644 --- a/.github/actions/ci-setup/action.yml +++ b/.github/actions/ci-setup/action.yml @@ -20,6 +20,7 @@ runs: using: composite steps: - name: Setup cache environment + if: ${{ inputs.php-extensions }} id: extcache uses: shivammathur/cache-extensions@v1 with: @@ -27,7 +28,8 @@ runs: extensions: ${{ inputs.php-extensions }} key: ${{ inputs.extensions-cache-key }} - name: Cache extensions - uses: actions/cache@v3 + if: ${{ inputs.php-extensions }} + uses: actions/cache@v4 with: path: ${{ steps.extcache.outputs.dir }} key: ${{ steps.extcache.outputs.key }}