You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

GitHub Actions缓存异常:Job Summary显示读写正常但Caches页面为空

GitHub Actions Gradle缓存异常:Job Summary显示缓存正常但Caches页面为空

近几天发现基于gradle/actions/setup-gradle@v3的工作流出现异常行为:Job Summary中明确显示缓存已完成读写操作,但GitHub的Caches页面却完全没有缓存条目。一周前该页面还能正常显示缓存内容,且工作流未做任何修改。

现象详情

  • 默认分支触发的工作流,Job Summary显示已成功保存缓存条目:
    Job summary screenshot showing saved entries
  • 针对默认分支的拉取请求触发的工作流,Job Summary显示已成功读取缓存:
    Job summary screenshot showing restored entries
  • 但GitHub仓库的Caches页面无任何缓存内容:
    Caches page showing there are no cache entries

工具验证结果

使用gh工具查询缓存信息,结果与Caches页面一致:

gh cache list

输出:

No caches found in org/repo

调用GitHub API查询缓存:

gh api \
  -H "Accept: application/vnd.github+json" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  /repos/org/repo/actions/caches

返回结果:

{
  "total_count": 0,
  "actions_caches": []
}

怀疑这是GitHub的Bug?请问有什么解决思路?


内容的提问来源于stack exchange,提问作者Andrzej Zabost

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.14 11:43:11