Skip to content

Commit

Permalink
patch(build_charms_with_cache.yaml): Remove actions.yaml from cache…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
carlcsaposs-canonical authored Apr 4, 2023
1 parent 6654798 commit c8ee045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build_charms_with_cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit c8ee045

Please sign in to comment.