actions / cache

Cache dependencies and build outputs in GitHub Actions
MIT License
4.36k stars 1.16k forks source link

Using cache with git tags #1371

Open MrExplode opened 2 months ago

MrExplode commented 2 months ago

I manage my deployments using git tags. I noticed that none of my cache setups work in my action jobs. I have looked at the actions docs extensively, and I only found one word mentioning tags in the cache restrictions section. Apparently git tags act as a separation layer between caches. image Is it possible to disable or bypass this cache scoping? I would really love if my runs could have the benefits of caching.

The above image is the result of the following section (which is the exact one mentioned at the pnpm docs):

- name: Setup pnpm
  uses: pnpm/action-setup@v2
  with:
    version: 8

- name: Setup Node
  uses: actions/setup-node@v4
  with:
    node-version: 20
    cache: pnpm

- name: Install dependencies
  run: pnpm install --frozen-lockfile
MrExplode commented 2 months ago

I'm very disappointed with the lack of any issue management or attention on this repository, considering this repo among others in the actions organization are part of GitHub.