首页 > 解决方案 > How to save github secrets content in a file in github action

问题描述

I was trying to do the following :

echo ${{secrets.key}} > myfile

But unfortunately, this doesn't work since myfile would be empty after this when i checked. How do i save the content of github secret into a file ?

标签: githubgithub-actions

解决方案


secrets.key在执行上述操作之前检查它是否确实存在。


推荐阅读