From 3dd12ac63a239479961f7a7307ba1869c93fa672 Mon Sep 17 00:00:00 2001 From: Nathanael Esayeas Date: Sun, 3 Dec 2023 10:33:22 -0600 Subject: [PATCH] Update automation.yml Signed-off-by: Nathanael Esayeas --- .github/workflows/automation.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/automation.yml b/.github/workflows/automation.yml index 17a1f921..ae76eef6 100644 --- a/.github/workflows/automation.yml +++ b/.github/workflows/automation.yml @@ -75,14 +75,10 @@ jobs: echo "::add-matcher::${{ runner.tool_cache }}/php.json" echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" - - name: Get composer cache directory - id: composer-cache - run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - - - name: Cache dependencies + - name: Cache composer dependencies uses: actions/cache@v3 with: - path: ${{ steps.composer-cache.outputs.dir }} + path: ${{ matrix.composerCacheFilesDirectory }} key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ matrix.dependency }}-${{ hashFiles('**/composer.lock') }} restore-keys: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ matrix.dependency }}- @@ -98,7 +94,6 @@ jobs: run: ${{ matrix.runCommand }} env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} INFECTION_DASHBOARD_API_KEY: ${{ secrets.INFECTION_DASHBOARD_API_KEY || secrets.STRYKER_DASHBOARD_API_KEY }}