Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache does not seem to be working with use-installer: true #103

Open
ericbn opened this issue Apr 11, 2024 · 0 comments
Open

Cache does not seem to be working with use-installer: true #103

ericbn opened this issue Apr 11, 2024 · 0 comments
Labels
good first issue Good for newcomers

Comments

@ericbn
Copy link

ericbn commented Apr 11, 2024

Hi 👋

I don't see a cache being created for SAM under the GitHub Action Caches in my repository using this action.

I'm using:

    runs-on: ubuntu-latest
    steps:
      - uses: aws-actions/setup-sam@v2
        with:
          use-installer: true
          version: 1.107.0

and my workflow run logs constantly show:

Cached AWS SAM CLI 1.107.0 to /opt/hostedtoolcache/sam/1.107.0/x64

Look like the @actions/cache module with the restoreCache and saveCache functions should be used, instead of @actions/tool-cache with find and cacheDir, in order to actually persistently cache the files.

@GavinZZ GavinZZ added the good first issue Good for newcomers label Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants