Skip to content

existing cache not found from pull_request workflow on same branch #1435

Open
@alvaromartmart

Description

@alvaromartmart

I have two separate workflows (I simplified the details as much as possible for brevity):

  • ci runs on push: trigger and creates a cache key key-${{github.sha}}
  • pr-checks runs on pull_request: trigger (with synchronize included) and tries to read key key-

My understanding is that, pr-checks should be able to read from the cache, even if in case of synchronize event it would get the cache corresponding to the previous commit sha that was cached.

However the pr-checks always fails with cache not found for key ..., even though if check on Github's UI, valid cache keys for that branch exists.

Is this expected? Does it have something to do with the scope of the cache? (I wouldn't expect it, since the cache was created in the scope of let's say feature-branch-1, and the PR ref is also feature-branch-1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions