/github/home 是否在 github 操作之间持续存在?

max*_*eld 5 github github-actions

到目前为止,根据文件系统文档,我的印象是(仅?)/github/workspace在操作(而不是工作流程)中持续存在:

Docker 容器的工作目录。GitHub Actions 在此目录中执行。该目录的路径在GITHUB_WORKSPACE环境变量中设置。

(...)

操作可以修改此目录的内容,后续操作可以访问该内容。

我现在有一个reprex(带有操作运行的实时存储库),显示它/github/home似乎也跨操作持续存在。

当然,我知道这些都不会在工作流程或运行中持续存在。就在行动之间。

文档(对我来说)对此有点不清楚,而且我还没有得到支持人员的答复。

从第一个操作开始记录/github/home

Running 'touch /github/home/foo'...
Successfully ran 'touch /github/home/foo'
Run Code Online (Sandbox Code Playgroud)

从第二个操作记录/github/home

Running 'ls /github/home'...
foo
Successfully ran 'ls /github/home'
Running 'rm /github/home/foo'...
Successfully ran 'rm /github/home/foo'
Run Code Online (Sandbox Code Playgroud)

这似乎表明这一点确实/github/home也持续存在,但我想确切地知道。

max*_*eld 0

GitHub Actions 支持确认所有这些/github在整个工作流程运行过程中都持续存在。