使用github操作来concat json文件
我有一个包含JSON文件的目录,我想使用github操作在存储库中创建一个新文件,其中包含所有这些JSON文件的数组。 例如,目录< my-repo>/configurations
包含文件a.json
,b.json
,我想创建一个称为configs.json
的新文件包含[< a.json content> ,,< b.json content>]
。 创建必须动态完成。 有什么建议吗?
I have a directory containing json files, and i want to use github actions to create a new file in the repository, that contains an array of all those json files.
for example, the directory <my-repo>/configurations
contain the files a.json
, b.json
, I want to create a new file called configs.json
contains [<a.json content>,<b.json content>]
.
The creation must be done dynamically.
Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
坐在
\ configs
目录下的配置文件的解决方案:solution for config files sitting under
\configs
directory: