According to the documentation for actions/cache, the lookup is already scoped to the current branch (with fallback to any base branch including the default branch).
According to the documentation for actions/cache, the lookup is already scoped to the current branch (with fallback to any base branch including the default branch).