最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

git - Automatic sync of selected files in a monorepo to separate repos - Stack Overflow

programmeradmin0浏览0评论

I am failing to set up an Actions workflow to run upon a push to a monorepo and sync files to target repos in the same account. It is supposed to read JSON from a GitHub variable which defines the target repos and their respective files that should be synced from the monorepo, if they have changed:

[
    {
  "repo1": {
    "repo": "account/repo1",
    "include": [
      "index.js",
      "somefile.js" 
    ]
  },
  "repo2": {
    "repo": "account/repo2",
    "include": [
      "start.js",
      "otherfile.js" 
    ]
  }
]

I have tried various versions of workflow YAML, none is better than the others, they all give errors.

发布评论

评论列表(0)

  1. 暂无评论