Github Variables

Context Variables

变量名称示例说明 / 用途
github.actor触发 workflow 的用户的用户名。([docs.gitea.com][1])
github.event_name事件名称,比如 pushpull_request 等。([docs.gitea.com][1])
github.ref被触发的 Git 引用(branch/tag/ref)名称。([docs.gitea.com][1])
github.repository仓库标识,一般是 owner/name。([docs.gitea.com][1])
github.workspace仓库被 checkout 到 runner 上的工作目录路径。([docs.gitea.com][1])
env.xxxx在workflow中定义的变量,比如 ${{ env.xxxx }}
secrets.XXXX通过 Settings -> Actions -> Secrets and variables 创建的密钥。