From c8ee045f251a29a71a81683cd13f7a016937b80d Mon Sep 17 00:00:00 2001 From: Carl Csaposs Date: Tue, 4 Apr 2023 19:50:47 +0000 Subject: [PATCH] patch(build_charms_with_cache.yaml): Remove `actions.yaml` from cache key (#31) The cached LXC container does not need to be recreated when `actions.yaml` changes Related discussion: https://chat.canonical.com/canonical/pl/3i1rukxuht8kbp4ax7xnh1d7pw --- .github/workflows/build_charms_with_cache.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_charms_with_cache.yaml b/.github/workflows/build_charms_with_cache.yaml index 41119a2f..c03a1118 100644 --- a/.github/workflows/build_charms_with_cache.yaml +++ b/.github/workflows/build_charms_with_cache.yaml @@ -107,7 +107,7 @@ jobs: uses: actions/cache/restore@v3 with: path: ~/ga-charmcraft-cache/** - key: charmcraft-pack-${{ matrix.charm.directory_path }}-${{ matrix.charm.bases_index }}-${{ steps.charmcraft-version.outputs.version }}-${{ hashFiles(format('{0}/charmcraft.yaml', matrix.charm.directory_path), format('{0}/actions.yaml', matrix.charm.directory_path), format('{0}/requirements.txt', matrix.charm.directory_path)) }} + key: charmcraft-pack-${{ matrix.charm.directory_path }}-${{ matrix.charm.bases_index }}-${{ steps.charmcraft-version.outputs.version }}-${{ hashFiles(format('{0}/charmcraft.yaml', matrix.charm.directory_path), format('{0}/requirements.txt', matrix.charm.directory_path)) }} - name: Import cached container if: ${{ steps.restore-cache.outputs.cache-hit }} run: |