Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将多个秘密连接到我在 GitHub 上的工作流操作中。
想到的示例是创建从文件夹到文件名的完整路径。
要将机密连接到 GitHub 上的工作流操作中:
${{ format('{0}/{1}.{2}', secrets.FOLDER, secrets.FILENAME, secrets.EXT) }}
来源: https ://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#format