.gitcode/workflows/trigger-readthedocs.yml 将 RTD_WEBHOOK_URL、RTD_WEBHOOK_TOKEN 和 BRANCH 写在 step 级 env 中,GitCode Actions 运行时 secrets 与上下文变量无法注入,导致 Read the Docs webhook 触发失败。
.gitcode/workflows/trigger-readthedocs.yml
RTD_WEBHOOK_URL
RTD_WEBHOOK_TOKEN
BRANCH
env
GitCode Actions(ubuntu-latest runner);仓库 Ascend/MindIE-Motor 的 trigger-readthedocs workflow;与昇腾硬件无关。
Ascend/MindIE-Motor
trigger-readthedocs
docs/**
mkdocs.yml
test -n
workflow 顶层 env 正确注入 secrets 与 atomgit.ref_name,Read the Docs webhook 成功触发。
atomgit.ref_name
调试时将 env 提升到 workflow 顶层后,secrets 与 BRANCH 可正常注入并触发 webhook。
问题描述
.gitcode/workflows/trigger-readthedocs.yml将RTD_WEBHOOK_URL、RTD_WEBHOOK_TOKEN和BRANCH写在 step 级env中,GitCode Actions 运行时 secrets 与上下文变量无法注入,导致 Read the Docs webhook 触发失败。环境信息
GitCode Actions(ubuntu-latest runner);仓库
Ascend/MindIE-Motor的trigger-readthedocsworkflow;与昇腾硬件无关。重现步骤
RTD_WEBHOOK_URL、RTD_WEBHOOK_TOKENsecrets。docs/**或mkdocs.yml变更,触发trigger-readthedocsworkflow。RTD_WEBHOOK_URL/RTD_WEBHOOK_TOKEN为空,test -n校验失败。预期结果
workflow 顶层
env正确注入 secrets 与atomgit.ref_name,Read the Docs webhook 成功触发。日志 / 截图
调试时将 env 提升到 workflow 顶层后,secrets 与
BRANCH可正常注入并触发 webhook。