Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/alpha' into alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
oprypkhantc committed Apr 23, 2024
2 parents 43c6f7b + 0d15138 commit 53e5b95
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [1.0.0-alpha.3](https://github.com/tenantcloud/template-sync/compare/v1.0.0-alpha.2...v1.0.0-alpha.3) (2024-04-22)


### Bug Fixes

* Broken filters ([70c96e7](https://github.com/tenantcloud/template-sync/commit/70c96e7fabb2073faa9eb1d5dc2644b7694b1d09))

# [1.0.0-alpha.2](https://github.com/tenantcloud/template-sync/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2024-04-22)


Expand Down
11 changes: 7 additions & 4 deletions dist/github-action/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52925,16 +52925,19 @@ const pluginsConfigSchema = z.strictObject({
z.string().min(1),
z.object({
name: z.string().min(1),
}),
})
.passthrough(),
]))
.min(1),
});
const CONFIG_FILE_NAME = "template-sync.json";
async function loadConfig(root) {
const rawConfig = await readJson((0,external_path_.join)(root, "template-sync.json"));
const rawConfig = await readJson((0,external_path_.join)(root, CONFIG_FILE_NAME));
return configSchema.parse(rawConfig);
}
const PLUGINS_CONFIG_FILE_NAME = "template-sync.plugins.json";
async function loadPluginsConfig(root) {
const rawConfig = await readJson((0,external_path_.join)(root, "template-sync.plugins.json"));
const rawConfig = await readJson((0,external_path_.join)(root, PLUGINS_CONFIG_FILE_NAME));
return pluginsConfigSchema.parse(rawConfig);
}

Expand Down Expand Up @@ -53037,7 +53040,7 @@ async function loadPluginFactory(name, repositoryRoot) {
async function sync_sync(sourceRoot, { repositoryCloner, }) {
const sourceConfig = await loadConfig(sourceRoot);
const source = new Repository(sourceRoot);
let reserved = ["template-sync.plugins.json"];
let reserved = [PLUGINS_CONFIG_FILE_NAME];
for (const repositoryConfig of sourceConfig.repositories) {
const template = await repositoryCloner.clone(repositoryConfig.url, repositoryConfig.branch);
const pluginsConfig = await loadPluginsConfig(template.root);
Expand Down

0 comments on commit 53e5b95

Please sign in to comment.