From 526a21dde309e679e5839ddeffd5dea4eab6edd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20S=C3=B3jko?= Date: Wed, 19 Oct 2022 14:16:03 +0200 Subject: [PATCH] fix: cache directories --- .github/workflows/server-application.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/server-application.yml b/.github/workflows/server-application.yml index 9e465f761..f46133f18 100644 --- a/.github/workflows/server-application.yml +++ b/.github/workflows/server-application.yml @@ -46,7 +46,7 @@ jobs: - name: Create Bundle Dir id: bundle-dir - run: echo "temp_dir=$(mktemp -d -t \"${{ inputs.service_name }}-${{ github.sha }}-XXXXXXX\")" >> $GITHUB_OUTPUT + run: echo "temp_dir=$(mktemp -d -t ${{ inputs.service_name }}-${{ github.sha }}-XXXXXXX)" >> $GITHUB_OUTPUT - name: Cache build id: cache-build @@ -81,7 +81,9 @@ jobs: id: cache-build uses: actions/cache@v3 with: - path: packages/**/dist + path: | + packages/**/dist + ${{ steps.bundle-dir.outputs.temp_dir }} key: ${{ runner.os }}-${{ inputs.service_name }}-build-${{ github.sha }} - name: Set up Node @@ -109,7 +111,9 @@ jobs: id: cache-build uses: actions/cache@v3 with: - path: packages/**/dist + path: | + packages/**/dist + ${{ steps.bundle-dir.outputs.temp_dir }} key: ${{ runner.os }}-${{ inputs.service_name }}-build-${{ github.sha }} - name: Set up Node @@ -138,7 +142,9 @@ jobs: id: cache-build uses: actions/cache@v3 with: - path: packages/**/dist + path: | + packages/**/dist + ${{ steps.bundle-dir.outputs.temp_dir }} key: ${{ runner.os }}-${{ inputs.service_name }}-build-${{ github.sha }} - name: Set up Node @@ -205,7 +211,9 @@ jobs: id: cache-build uses: actions/cache@v3 with: - path: packages/**/dist + path: | + packages/**/dist + ${{ steps.bundle-dir.outputs.temp_dir }} key: ${{ runner.os }}-${{ inputs.service_name }}-build-${{ github.sha }} - name: Set up Node @@ -266,7 +274,9 @@ jobs: id: cache-build uses: actions/cache@v3 with: - path: packages/**/dist + path: | + packages/**/dist + ${{ steps.bundle-dir.outputs.temp_dir }} key: ${{ runner.os }}-${{ inputs.service_name }}-build-${{ github.sha }} - name: Set up Node