github - 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 ?
解决方案
secrets.key
在执行上述操作之前检查它是否确实存在。
推荐阅读
- mongodb - $gte 和 $lte 运算符 mongo 按数字过滤字符串字段
- javascript - 使用 PHP 重新加载后删除查询
- android - 如何将数据存储到 Flutter 中的内部存储而不是 path_providers
- angular - IIS 上的 Angular 通用部署
- javascript - 我如何在javascript中随机生成一个二进制数?
- mongodb - 准确结果的 MongoDB 查询谓词
- java - 在单元测试中模拟 Executorservice 字段
- ios - Firebase 应用内消息 (iOS) - 仅在全新安装后接收
- javascript - Laravel上传多个文件并在控制器中返回文件名列表
- ssl - 带有自签名 SSL 证书的 Apache camel http4